Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,16 @@ import gradio as gr
|
|
| 5 |
# frontend-only: call your backend (RunPod/pod/etc.)
|
| 6 |
BACKEND_URL = os.getenv("BACKEND_URL", "http://localhost:7861")
|
| 7 |
|
| 8 |
-
cfg = yaml.safe_load(open("configs/infer.yaml"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def b64_to_img(s: str):
|
|
|
|
| 5 |
# frontend-only: call your backend (RunPod/pod/etc.)
|
| 6 |
BACKEND_URL = os.getenv("BACKEND_URL", "http://localhost:7861")
|
| 7 |
|
| 8 |
+
# cfg = yaml.safe_load(open("configs/infer.yaml"))
|
| 9 |
+
# default UI values if no YAML
|
| 10 |
+
cfg = {
|
| 11 |
+
"height": 512,
|
| 12 |
+
"width": 512,
|
| 13 |
+
"num_inference_steps": 30,
|
| 14 |
+
"guidance_scale": 7.5,
|
| 15 |
+
"seed": 1234,
|
| 16 |
+
"eta" : 0,
|
| 17 |
+
}
|
| 18 |
|
| 19 |
|
| 20 |
def b64_to_img(s: str):
|