aegrif commited on
Commit
00aecc9
1 Parent(s): b50a0d1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -141,8 +141,15 @@ def t5_bot(history):
141
 
142
 
143
  with gr.Blocks() as demo:
 
144
  with gr.Row():
145
- gr.Image("instructions.png", interactive=False, show_label=False)
 
 
 
 
 
 
146
  with gr.Row():
147
  with gr.Column():
148
  chatbot1 = gr.Chatbot(label="Chatbot #1").style(height=500)
@@ -154,8 +161,9 @@ with gr.Blocks() as demo:
154
  chatbot3 = gr.Chatbot(label="Chatbot #3").style(height=500)
155
  msg3 = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
156
  with gr.Row():
157
- gr.HTML('<p style="font-size:150%; font-family: "Playfair Display", "Didot", "Times New Roman">Once you have finished interacting with the agents, please follow the link below to complete a short survey about your experience.</p>'
158
- '<p style="font-size:125%; font-family: "Playfair Display", "Didot", "Times New Roman"><a href=''https://docs.google.com/forms/d/1SICfdLcj_jbDeObZ6lxZ7b8a1L7fsZjX_ETfWc5o4VQ/edit'' target=''_blank''>https://docs.google.com/forms/d/1SICfdLcj_jbDeObZ6lxZ7b8a1L7fsZjX_ETfWc5o4VQ/edit</a></p')
 
159
 
160
  msg1.submit(user, [msg1, chatbot1], [msg1, chatbot1], queue=False).then(
161
  t5_bot_no_emo, chatbot1, chatbot1
 
141
 
142
 
143
  with gr.Blocks() as demo:
144
+
145
  with gr.Row():
146
+ gr.Markdown(
147
+ "# DAAGR Chatbot Demo\n\n\n" \
148
+ "## Below you’ll see three chatbots, each running on different models. Here are a list of scenarios that we would like you to test on all three bots:\n\n" \
149
+ "### 1. I was delighted the other day when I got to see a friend that I hadn’t seen in 20 years.\n" \
150
+ "### 2. I was so upset when I failed my math test, I was only 1 percent off!\n" \
151
+ "### 3. I just ordered a new cookery book and am eagerly awaiting its arrival. I want to delve in and try lots of new recipes!",
152
+ )
153
  with gr.Row():
154
  with gr.Column():
155
  chatbot1 = gr.Chatbot(label="Chatbot #1").style(height=500)
 
161
  chatbot3 = gr.Chatbot(label="Chatbot #3").style(height=500)
162
  msg3 = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
163
  with gr.Row():
164
+ gr.Markdown(
165
+ '### Based on the individual responses from each chatbot, please follow the [link](https://docs.google.com/forms/d/1SICfdLcj_jbDeObZ6lxZ7b8a1L7fsZjX_ETfWc5o4VQ/edit) and rate the models with respect to three metrics: fluency, relevance, and appropriateness.'\
166
+ '\n ### Thank you for participating in our study.')
167
 
168
  msg1.submit(user, [msg1, chatbot1], [msg1, chatbot1], queue=False).then(
169
  t5_bot_no_emo, chatbot1, chatbot1