lbiester commited on
Commit
3d6a841
·
verified ·
1 Parent(s): a875def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
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
- 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()
 
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()