vikaskookna commited on
Commit
35da36f
·
1 Parent(s): ead8f37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def funct(sentence):
18
 
19
  with gr.Blocks() as app:
20
  message = gr.Textbox(label='input')
21
- sentiment = gr.Chatbot()
22
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
23
 
24
  gr.Examples(
@@ -35,6 +35,6 @@ with gr.Blocks() as app:
35
 
36
  submit.click(fn=funct,
37
  inputs=message,
38
- outputs=[sentiment])
39
 
40
  app.launch(debug=True)
 
18
 
19
  with gr.Blocks() as app:
20
  message = gr.Textbox(label='input')
21
+ sentiment = gr.Textbox(label='chatbot')
22
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
23
 
24
  gr.Examples(
 
35
 
36
  submit.click(fn=funct,
37
  inputs=message,
38
+ outputs=sentiment)
39
 
40
  app.launch(debug=True)