hysts HF Staff commited on
Commit
bc89b9f
·
1 Parent(s): db080dd

Replace api_name=False with api_visibility=private (Gradio 6)

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- api_name=False,
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_name=False,
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_name=False,
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_name=False,
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(