Denver Citizen9 commited on
Commit
7affa44
1 Parent(s): db3fa21
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -27,8 +27,7 @@ def launch_demo():
27
 
28
  dropdown = gr.components.Dropdown(categories, label="Select a Category")
29
  text_input = gr.components.Textbox(label="Enter Text")
30
- button = gr.components.Button(label="Submit")
31
- output = gr.outputs.Textbox(label="Analysis Result")
32
 
33
  examples = [
34
  [random.choice(categories), "Example input 1"],
@@ -37,7 +36,7 @@ def launch_demo():
37
 
38
  gr.Interface(
39
  fn=analyze_input,
40
- inputs=[dropdown, text_input, button],
41
  outputs=output,
42
  examples=examples,
43
  title="Data Analyzer",
 
27
 
28
  dropdown = gr.components.Dropdown(categories, label="Select a Category")
29
  text_input = gr.components.Textbox(label="Enter Text")
30
+ output = gr.components.Textbox(label="Analysis Result")
 
31
 
32
  examples = [
33
  [random.choice(categories), "Example input 1"],
 
36
 
37
  gr.Interface(
38
  fn=analyze_input,
39
+ inputs=[dropdown, text_input],
40
  outputs=output,
41
  examples=examples,
42
  title="Data Analyzer",