Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,15 +28,15 @@ demo = gr.Blocks()
|
|
28 |
with demo:
|
29 |
gr.Markdown("A bunch of different Gradio demos in tabs.\n\nNote that generally, the code that is in each tab could be its own Gradio application!")
|
30 |
with gr.Tabs():
|
31 |
-
gr.Markdown('The most basic "Hello World"-type demo you can write')
|
32 |
with gr.TabItem("Basic Hello"):
|
|
|
33 |
interface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
34 |
with gr.TabItem("Label Output"):
|
35 |
gr.Markdown("An example of a basic interface with a classification label as output")
|
36 |
interface = gr.Interface(fn=classify, inputs="text", outputs="label")
|
37 |
|
38 |
-
|
39 |
-
|
40 |
# demo = gr.Interface(
|
41 |
# predict_sentiment,
|
42 |
# [
|
|
|
28 |
with demo:
|
29 |
gr.Markdown("A bunch of different Gradio demos in tabs.\n\nNote that generally, the code that is in each tab could be its own Gradio application!")
|
30 |
with gr.Tabs():
|
|
|
31 |
with gr.TabItem("Basic Hello"):
|
32 |
+
gr.Markdown('The most basic "Hello World"-type demo you can write')
|
33 |
interface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
34 |
with gr.TabItem("Label Output"):
|
35 |
gr.Markdown("An example of a basic interface with a classification label as output")
|
36 |
interface = gr.Interface(fn=classify, inputs="text", outputs="label")
|
37 |
|
38 |
+
with gr.TabItem("Multiple Inputs"):
|
39 |
+
gr.Markdown("A more complex interface for sentiment analysis with multiple inputs, including a dropdown, and some examples")
|
40 |
# demo = gr.Interface(
|
41 |
# predict_sentiment,
|
42 |
# [
|