Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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), #
|
| 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), #
|
| 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=
|
| 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(
|