wiraindrak commited on
Commit
92bbd4b
·
1 Parent(s): dc02166

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -34,18 +34,20 @@ def ner(text):
34
 
35
  sentiment_demo = gr.Interface(
36
  fn=sentiment_analysis,
37
- inputs=gr.Textbox(placeholder="Enter sentence here..."),
38
  outputs="label",
39
  interpretation="default",
40
- examples=examples)
41
 
42
  ner_demo = gr.Interface(
43
  ner,
44
- gr.Textbox(placeholder="Enter sentence here..."),
45
  gr.HighlightedText(),
46
- examples=examples)
 
47
 
48
  if __name__ == "__main__":
49
  Parallel(sentiment_demo, ner_demo,
50
- inputs=gr.Textbox(placeholder="Enter sentence here..."),
 
51
  examples=examples).launch()
 
34
 
35
  sentiment_demo = gr.Interface(
36
  fn=sentiment_analysis,
37
+ inputs="text",
38
  outputs="label",
39
  interpretation="default",
40
+ title="Sentiment Classification")
41
 
42
  ner_demo = gr.Interface(
43
  ner,
44
+ "text",
45
  gr.HighlightedText(),
46
+ examples=examples,
47
+ title="Named Entity Recognition")
48
 
49
  if __name__ == "__main__":
50
  Parallel(sentiment_demo, ner_demo,
51
+ inputs=gr.Textbox(lines=20, label="Input Text", placeholder="Enter sentences here..."),
52
+ title="Entity Based Sentiment Analysis Indonesia",
53
  examples=examples).launch()