Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ def app_interface():
|
|
73 |
|
74 |
task_dropdown = gr.Dropdown(list(tasks.keys()) + ["None"], label="Select a Task (Optional)", value="None")
|
75 |
|
76 |
-
input_text_box = gr.Textbox(label="Input Text")
|
77 |
-
system_prompt_box = gr.Textbox(label="System Prompt (Optional)"
|
78 |
|
79 |
compute_button = gr.Button("Tryπ£ππ»e5")
|
80 |
|
@@ -94,12 +94,6 @@ def app_interface():
|
|
94 |
outputs=output_display
|
95 |
)
|
96 |
|
97 |
-
task_dropdown.change(
|
98 |
-
fn=lambda task: {"visible": task == "None"},
|
99 |
-
inputs=task_dropdown,
|
100 |
-
outputs=system_prompt_box
|
101 |
-
)
|
102 |
-
|
103 |
return demo
|
104 |
|
105 |
# Run the Gradio app
|
|
|
73 |
|
74 |
task_dropdown = gr.Dropdown(list(tasks.keys()) + ["None"], label="Select a Task (Optional)", value="None")
|
75 |
|
76 |
+
input_text_box = gr.Textbox(label="πInput Text")
|
77 |
+
system_prompt_box = gr.Textbox(label="π€System Prompt (Optional)")
|
78 |
|
79 |
compute_button = gr.Button("Tryπ£ππ»e5")
|
80 |
|
|
|
94 |
outputs=output_display
|
95 |
)
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
return demo
|
98 |
|
99 |
# Run the Gradio app
|