tonyassi commited on
Commit
84970a1
·
verified ·
1 Parent(s): 51f4994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -183,7 +183,7 @@ Showcase of the **[Face‑swap.co]({API_URL})** API using **Gradio Blocks**.
183
  # 2) Check Status
184
  with gr.TabItem("2) Check Status"):
185
  job_in = gr.Textbox(label="Job ID", placeholder="YOUR_JOB_ID")
186
- status_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_status_code("YOUR_JOB_ID"), show_copy_button=True)
187
  status_exec = gr.Button("▶️ Execute", variant="primary")
188
  status_out = gr.Textbox(label="Response", lines=12, show_copy_button=True)
189
 
@@ -196,7 +196,7 @@ Showcase of the **[Face‑swap.co]({API_URL})** API using **Gradio Blocks**.
196
  # 3) Get Credits
197
  with gr.TabItem("3) Get Credits"):
198
  credits_key_in = gr.Textbox(label="API Key", placeholder="YOUR_API_KEY", type="password")
199
- credits_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_credits_code("YOUR_API_KEY"), show_copy_button=True)
200
  credits_exec = gr.Button("▶️ Execute", variant="secondary")
201
  credits_out = gr.Textbox(label="Response", lines=10, show_copy_button=True)
202
 
@@ -209,7 +209,7 @@ Showcase of the **[Face‑swap.co]({API_URL})** API using **Gradio Blocks**.
209
  # 4) Get Jobs
210
  with gr.TabItem("4) Get Jobs"):
211
  jobs_key_in = gr.Textbox(label="API Key", placeholder="YOUR_API_KEY", type="password")
212
- jobs_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_jobs_code("YOUR_API_KEY"), show_copy_button=True)
213
  jobs_exec = gr.Button("▶️ Execute", variant="secondary")
214
  jobs_out = gr.Textbox(label="Response", lines=12, show_copy_button=True)
215
 
 
183
  # 2) Check Status
184
  with gr.TabItem("2) Check Status"):
185
  job_in = gr.Textbox(label="Job ID", placeholder="YOUR_JOB_ID")
186
+ status_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_status_code("YOUR_JOB_ID"))
187
  status_exec = gr.Button("▶️ Execute", variant="primary")
188
  status_out = gr.Textbox(label="Response", lines=12, show_copy_button=True)
189
 
 
196
  # 3) Get Credits
197
  with gr.TabItem("3) Get Credits"):
198
  credits_key_in = gr.Textbox(label="API Key", placeholder="YOUR_API_KEY", type="password")
199
+ credits_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_credits_code("YOUR_API_KEY"))
200
  credits_exec = gr.Button("▶️ Execute", variant="secondary")
201
  credits_out = gr.Textbox(label="Response", lines=10, show_copy_button=True)
202
 
 
209
  # 4) Get Jobs
210
  with gr.TabItem("4) Get Jobs"):
211
  jobs_key_in = gr.Textbox(label="API Key", placeholder="YOUR_API_KEY", type="password")
212
+ jobs_code = gr.Code(label="Python (auto‑generated)", language="python", interactive=False, value=build_jobs_code("YOUR_API_KEY"))
213
  jobs_exec = gr.Button("▶️ Execute", variant="secondary")
214
  jobs_out = gr.Textbox(label="Response", lines=12, show_copy_button=True)
215