wira.indra commited on
Commit
660b172
1 Parent(s): d6501eb

add twitter feature

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -59,10 +59,11 @@ if __name__ == "__main__":
59
 
60
  with gr.Blocks() as demo:
61
 
62
- gr.Markdown("""Entity Based Sentiment Analysis Indonesia""")
63
 
64
  gr.Markdown(
65
  """
 
66
  """
67
  )
68
 
@@ -71,10 +72,11 @@ if __name__ == "__main__":
71
  with gr.Row():
72
  with gr.Column():
73
  input_text = gr.Textbox(label="Input Text")
 
74
  analyze_button = gr.Button(label="Analyze")
75
  with gr.Column():
76
- sent_output = gr.Textbox(label="Sentiment Analysis")
77
- ner_output = gr.Textbox(label="Named Entity Recognition")
78
 
79
  # sentiment_demo = gr.Interface(
80
  # fn=sentiment_analysis,
 
59
 
60
  with gr.Blocks() as demo:
61
 
62
+ gr.Markdown("""<h1 style="text-align:center">Entity Based Sentiment Analysis Indonesia</h1>""")
63
 
64
  gr.Markdown(
65
  """
66
+ Creator: Wira Indra Kusuma
67
  """
68
  )
69
 
 
72
  with gr.Row():
73
  with gr.Column():
74
  input_text = gr.Textbox(label="Input Text")
75
+ examples_bar = gr.Examples(examples)
76
  analyze_button = gr.Button(label="Analyze")
77
  with gr.Column():
78
+ sent_output = gr.Label(label="Sentiment Analysis")
79
+ ner_output = gr.HighlightedText(label="Named Entity Recognition")
80
 
81
  # sentiment_demo = gr.Interface(
82
  # fn=sentiment_analysis,