patti-j commited on
Commit
a49c2de
1 Parent(s): b114ef5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
 
3
- gr.HTML("Omdena AI Chatbot For Mental Health and Well Being")
4
 
5
 
6
  """class ChatWrapper:
@@ -18,19 +17,19 @@ chat = ChatWrapper()"""
18
 
19
  chatbot = gr.Chatbot()
20
 
21
- block = gr.Blocks(css=".gradio-container {background-color: gray}")
22
 
23
  with block:
24
  with gr.Row():
 
25
  disclaimer = gr.Textbox(
26
  "I am an AI ChatBot and I am here to assist you with whatever is bothering you. "
27
  "Our conversation is strictly confidential and I will not remember it when you come back another time."
28
  )
 
29
  with gr.Row():
30
  message = gr.Textbox(
31
  label="What would you like to talk about?",
32
- placeholder="Ask questions about the most recent state of the union",
33
- lines=1,
34
  )
35
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
36
 
@@ -42,6 +41,9 @@ with block:
42
  inputs=message,
43
  )
44
 
 
 
 
45
  # submit.click(chat, inputs=[message], outputs=[chatbot])
46
 
47
  block.launch(debug=True)
 
1
  import gradio as gr
2
 
 
3
 
4
 
5
  """class ChatWrapper:
 
17
 
18
  chatbot = gr.Chatbot()
19
 
20
+ block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
21
 
22
  with block:
23
  with gr.Row():
24
+ label = None
25
  disclaimer = gr.Textbox(
26
  "I am an AI ChatBot and I am here to assist you with whatever is bothering you. "
27
  "Our conversation is strictly confidential and I will not remember it when you come back another time."
28
  )
29
+
30
  with gr.Row():
31
  message = gr.Textbox(
32
  label="What would you like to talk about?",
 
 
33
  )
34
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
35
 
 
41
  inputs=message,
42
  )
43
 
44
+ gr.HTML("Omdena AI Chatbot For Mental Health and Well Being")
45
+
46
+
47
  # submit.click(chat, inputs=[message], outputs=[chatbot])
48
 
49
  block.launch(debug=True)