sandeepmajumdar commited on
Commit
47defcb
1 Parent(s): 1e22469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,10 +8,10 @@ def convert(Sentence):
8
 
9
  with gr.Blocks() as bls:
10
  gr.Markdown("Here is a Sentiment Analysis app")
11
- # with gr.Row():
12
- inp = gr.Textbox(label="Type your sentence here and click Run", placeholder='Example: I love to eat')
13
- out1 = gr.Textbox(label="The sentiment is:")
14
- out2 = gr.Number(label='Sentiment confidence % is:')
15
  btn = gr.Button("Run")
16
  btn.click(fn=convert, inputs=inp, outputs=[out1, out2])
17
 
 
8
 
9
  with gr.Blocks() as bls:
10
  gr.Markdown("Here is a Sentiment Analysis app")
11
+ with gr.Row():
12
+ inp = gr.Textbox(label="Type your sentence here and click Run", placeholder='Example: the food delivered was stale')
13
+ out1 = gr.Textbox(label="The sentiment is:")
14
+ out2 = gr.Number(label='Sentiment confidence % is:')
15
  btn = gr.Button("Run")
16
  btn.click(fn=convert, inputs=inp, outputs=[out1, out2])
17