cxumol commited on
Commit
54587d2
·
unverified ·
1 Parent(s): aba8c70

Update app.py

Browse files
Files changed (1) hide show
  1. app/app.py +8 -0
app/app.py CHANGED
@@ -304,12 +304,20 @@ with gr.Blocks(
304
  fn=apply_quick_config,
305
  inputs=[quick_config_cheapAI, cheap_base, cheap_key, cheap_model],
306
  outputs=[cheap_base, cheap_key, cheap_model],
 
 
 
 
307
  )
308
 
309
  apply_strong_btn.click(
310
  fn=apply_quick_config,
311
  inputs=[quick_config_strongAI, strong_base, strong_key, strong_model],
312
  outputs=[strong_base, strong_key, strong_model],
 
 
 
 
313
  )
314
 
315
  infer_btn.click(
 
304
  fn=apply_quick_config,
305
  inputs=[quick_config_cheapAI, cheap_base, cheap_key, cheap_model],
306
  outputs=[cheap_base, cheap_key, cheap_model],
307
+ ).then(
308
+ fn=lambda: gr.Accordion("AI setup (OpenAI-compatible LLM API)", open=True),
309
+ inputs=None,
310
+ outputs=[setup_zone],
311
  )
312
 
313
  apply_strong_btn.click(
314
  fn=apply_quick_config,
315
  inputs=[quick_config_strongAI, strong_base, strong_key, strong_model],
316
  outputs=[strong_base, strong_key, strong_model],
317
+ ).then(
318
+ fn=lambda: gr.Accordion("AI setup (OpenAI-compatible LLM API)", open=True),
319
+ inputs=None,
320
+ outputs=[setup_zone],
321
  )
322
 
323
  infer_btn.click(