Tonic commited on
Commit
ce60cd6
Β·
verified Β·
1 Parent(s): cf07922

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
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)", visible=False) # Additional input for system prompt
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