Spaces:
Runtime error
Runtime error
Denver Citizen9 commited on
Commit ·
db3fa21
1
Parent(s): 2f36e59
updated to use components instead
Browse files
app.py
CHANGED
|
@@ -25,9 +25,9 @@ def launch_demo():
|
|
| 25 |
result = analyze_data(category, text)
|
| 26 |
return result
|
| 27 |
|
| 28 |
-
dropdown = gr.
|
| 29 |
-
text_input = gr.
|
| 30 |
-
button = gr.
|
| 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()
|