salso commited on
Commit
f43190d
Β·
verified Β·
1 Parent(s): db1e6d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
9
  import replicate
10
 
11
  # ────────── Secrets & endpoints ──────────
12
- BASETEN_MODEL_URL = "https://app.baseten.co/models/YOUR_MODEL_ID/predict"
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=False)
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):