Denver Citizen9 commited on
Commit
db3fa21
1 Parent(s): 2f36e59

updated to use components instead

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,9 +25,9 @@ def launch_demo():
25
  result = analyze_data(category, text)
26
  return result
27
 
28
- dropdown = gr.inputs.Dropdown(categories, label="Select a Category")
29
- text_input = gr.inputs.Textbox(label="Enter Text")
30
- button = gr.inputs.Button(label="Submit")
31
  output = gr.outputs.Textbox(label="Analysis Result")
32
 
33
  examples = [
@@ -45,4 +45,4 @@ def launch_demo():
45
  theme="default",
46
  ).launch()
47
 
48
- launch_demo()
 
25
  result = analyze_data(category, text)
26
  return result
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 = [
 
45
  theme="default",
46
  ).launch()
47
 
48
+ launch_demo()