Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,23 +35,23 @@ with demo:
|
|
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 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
demo.launch()
|
|
|
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 |
+
# [
|
43 |
+
# gr.Textbox(placeholder="Your text input"),
|
44 |
+
# gr.Dropdown(
|
45 |
+
# ["finiteautomata/bertweet-base-sentiment-analysis", "vader"], label="Model"
|
46 |
+
# ),
|
47 |
+
# ],
|
48 |
+
# "text",
|
49 |
+
# examples=[
|
50 |
+
# ["Happy smile", "vader"],
|
51 |
+
# ["Happy smile", "finiteautomata/bertweet-base-sentiment-analysis"],
|
52 |
+
# ["Sad frown", "vader"],
|
53 |
+
# ["Sad frown", "finiteautomata/bertweet-base-sentiment-analysis"],
|
54 |
+
# ]
|
55 |
+
# )
|
56 |
|
57 |
demo.launch()
|