Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import gradio as gr
|
|
| 9 |
import replicate
|
| 10 |
|
| 11 |
# ββββββββββ Secrets & endpoints ββββββββββ
|
| 12 |
-
BASETEN_MODEL_URL =
|
| 13 |
BASETEN_API_KEY = os.getenv("BASETEN_API_KEY")
|
| 14 |
REPLICATE_TOKEN = os.getenv("REPLICATE_API_TOKEN")
|
| 15 |
|
|
@@ -125,7 +125,7 @@ with gr.Blocks(css=css, title="ZenCtrl Inpainting") as demo:
|
|
| 125 |
|
| 126 |
with gr.Column(scale=2):
|
| 127 |
gallery = gr.Gallery(columns=[1], rows=[1], object_fit="contain", height="auto")
|
| 128 |
-
bg_img = gr.Image(label="Background", visible=
|
| 129 |
|
| 130 |
# ---------- Example wrapper ---------------------------------
|
| 131 |
def _run_example(subj, bg, prompt):
|
|
|
|
| 9 |
import replicate
|
| 10 |
|
| 11 |
# ββββββββββ Secrets & endpoints ββββββββββ
|
| 12 |
+
BASETEN_MODEL_URL = os.getenv("BASETEN_MODEL_URL")
|
| 13 |
BASETEN_API_KEY = os.getenv("BASETEN_API_KEY")
|
| 14 |
REPLICATE_TOKEN = os.getenv("REPLICATE_API_TOKEN")
|
| 15 |
|
|
|
|
| 125 |
|
| 126 |
with gr.Column(scale=2):
|
| 127 |
gallery = gr.Gallery(columns=[1], rows=[1], object_fit="contain", height="auto")
|
| 128 |
+
bg_img = gr.Image(label="Background", visible=True)
|
| 129 |
|
| 130 |
# ---------- Example wrapper ---------------------------------
|
| 131 |
def _run_example(subj, bg, prompt):
|