aizip-dev commited on
Commit
b587417
·
verified ·
1 Parent(s): b867be1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -202,7 +202,7 @@ def process_generation_result(result):
202
  gr.update(visible=False),
203
  gr.update(interactive=False, visible=True),
204
  gr.update(visible=False),
205
- gr.update(interactive=True), # Re-enable button
206
  gr.update(elem_classes=[])
207
  ]
208
 
@@ -223,7 +223,7 @@ def process_generation_result(result):
223
  gr.update(visible=False),
224
  gr.update(interactive=False, visible=True),
225
  gr.update(visible=False),
226
- gr.update(interactive=True), # Re-enable button
227
  gr.update(elem_classes=[])
228
  ]
229
 
@@ -327,7 +327,7 @@ def show_all_after_loading():
327
  gr.update(visible=True), # model_section
328
  gr.update(visible=True), # voting_section
329
  gr.update(visible=True), # submit_button
330
- gr.update(value="🔄 Try a New Question", elem_classes=["query-button"], interactive=True) # RE-ENABLE button
331
  ]
332
 
333
  with gr.Blocks(theme=gr.themes.Default(
 
202
  gr.update(visible=False),
203
  gr.update(interactive=False, visible=True),
204
  gr.update(visible=False),
205
+ gr.update(interactive=True, value="🔄 Try a New Question", elem_classes=["query-button"]), # RE-ENABLE after inference
206
  gr.update(elem_classes=[])
207
  ]
208
 
 
223
  gr.update(visible=False),
224
  gr.update(interactive=False, visible=True),
225
  gr.update(visible=False),
226
+ gr.update(interactive=True, value="🔄 Try a New Question", elem_classes=["query-button"]), # RE-ENABLE after inference
227
  gr.update(elem_classes=[])
228
  ]
229
 
 
327
  gr.update(visible=True), # model_section
328
  gr.update(visible=True), # voting_section
329
  gr.update(visible=True), # submit_button
330
+ gr.update(value="🔄 Try a New Question", elem_classes=["query-button"], interactive=False) # KEEP DISABLED during inference
331
  ]
332
 
333
  with gr.Blocks(theme=gr.themes.Default(