Spaces:
Running on Zero
Running on Zero
Replace api_name=False with api_visibility=private (Gradio 6)
Browse files
app.py
CHANGED
|
@@ -259,28 +259,28 @@ with gr.Blocks() as demo:
|
|
| 259 |
inputs=use_negative_prompt,
|
| 260 |
outputs=negative_prompt,
|
| 261 |
queue=False,
|
| 262 |
-
|
| 263 |
)
|
| 264 |
use_prompt_2.change(
|
| 265 |
fn=lambda x: gr.Textbox(visible=x),
|
| 266 |
inputs=use_prompt_2,
|
| 267 |
outputs=prompt_2,
|
| 268 |
queue=False,
|
| 269 |
-
|
| 270 |
)
|
| 271 |
use_negative_prompt_2.change(
|
| 272 |
fn=lambda x: gr.Textbox(visible=x),
|
| 273 |
inputs=use_negative_prompt_2,
|
| 274 |
outputs=negative_prompt_2,
|
| 275 |
queue=False,
|
| 276 |
-
|
| 277 |
)
|
| 278 |
apply_refiner.change(
|
| 279 |
fn=lambda x: gr.Row(visible=x),
|
| 280 |
inputs=apply_refiner,
|
| 281 |
outputs=refiner_params,
|
| 282 |
queue=False,
|
| 283 |
-
|
| 284 |
)
|
| 285 |
|
| 286 |
gr.on(
|
|
|
|
| 259 |
inputs=use_negative_prompt,
|
| 260 |
outputs=negative_prompt,
|
| 261 |
queue=False,
|
| 262 |
+
api_visibility="private",
|
| 263 |
)
|
| 264 |
use_prompt_2.change(
|
| 265 |
fn=lambda x: gr.Textbox(visible=x),
|
| 266 |
inputs=use_prompt_2,
|
| 267 |
outputs=prompt_2,
|
| 268 |
queue=False,
|
| 269 |
+
api_visibility="private",
|
| 270 |
)
|
| 271 |
use_negative_prompt_2.change(
|
| 272 |
fn=lambda x: gr.Textbox(visible=x),
|
| 273 |
inputs=use_negative_prompt_2,
|
| 274 |
outputs=negative_prompt_2,
|
| 275 |
queue=False,
|
| 276 |
+
api_visibility="private",
|
| 277 |
)
|
| 278 |
apply_refiner.change(
|
| 279 |
fn=lambda x: gr.Row(visible=x),
|
| 280 |
inputs=apply_refiner,
|
| 281 |
outputs=refiner_params,
|
| 282 |
queue=False,
|
| 283 |
+
api_visibility="private",
|
| 284 |
)
|
| 285 |
|
| 286 |
gr.on(
|