Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,14 +131,15 @@ Choose one of the three tasks below ... and start to play!
|
|
| 131 |
|
| 132 |
with gr.Row():
|
| 133 |
with gr.Column():
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
|
|
|
| 138 |
|
| 139 |
-
# h1 = gr.HighlightedText(label="Review
|
| 140 |
|
| 141 |
-
input_text = gr.Textbox(label="Review
|
| 142 |
interpretation1 = gr.components.Interpretation(input_text)
|
| 143 |
|
| 144 |
# image_1_1 = gr.Image('icon_user.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
|
@@ -178,8 +179,8 @@ Choose one of the three tasks below ... and start to play!
|
|
| 178 |
chat_button_1 = gr.Button("Click to see AI's answer.", size='sm')
|
| 179 |
slider_1_2 = gr.Slider(label="AI: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 180 |
interpre_button = gr.Button("See how AI gets the answer.", size='sm')
|
| 181 |
-
# h2 = gr.HighlightedText(label="Review
|
| 182 |
-
placeholder_text = gr.Textbox(label="Review
|
| 183 |
interpretation2 = gr.components.Interpretation(placeholder_text)
|
| 184 |
# image_1_2 = gr.Image('icon_robot.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
| 185 |
chatbot1 = gr.Chatbot(height=200, min_width=50, container=False) # height=300
|
|
@@ -194,7 +195,7 @@ Choose one of the three tasks below ... and start to play!
|
|
| 194 |
|
| 195 |
with gr.Row():
|
| 196 |
with gr.Column():
|
| 197 |
-
text_written = gr.Textbox(label="Review
|
| 198 |
# image_1_3 = gr.Image('icon_user.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
| 199 |
slider_1_3 = gr.Slider(label="Human: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 200 |
lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
|
|
|
|
| 131 |
|
| 132 |
with gr.Row():
|
| 133 |
with gr.Column():
|
| 134 |
+
with gr.Row():
|
| 135 |
+
sample_button_en = gr.Button("Click to get a review in English.", size='sm')
|
| 136 |
+
gr.Markdown(''' <p style="text-align: center;"> or </p> ''')
|
| 137 |
+
# gr.Markdown(''' <h2 style="text-align: center;"> or </h2> ''')
|
| 138 |
+
sample_button_nl = gr.Button("Click to get a review in Dutch.", size='sm')
|
| 139 |
|
| 140 |
+
# h1 = gr.HighlightedText(label="Review:", interactive=True, show_legend=True, combine_adjacent=False, color_map={"+": "red", "-": "green"})
|
| 141 |
|
| 142 |
+
input_text = gr.Textbox(label="Review:", value="HELLO! Hallo!", visible=False, container=False)
|
| 143 |
interpretation1 = gr.components.Interpretation(input_text)
|
| 144 |
|
| 145 |
# image_1_1 = gr.Image('icon_user.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
|
|
|
| 179 |
chat_button_1 = gr.Button("Click to see AI's answer.", size='sm')
|
| 180 |
slider_1_2 = gr.Slider(label="AI: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 181 |
interpre_button = gr.Button("See how AI gets the answer.", size='sm')
|
| 182 |
+
# h2 = gr.HighlightedText(label="Review:", interactive=True, show_legend=True, combine_adjacent=False, color_map={"+": "red", "-": "green"})
|
| 183 |
+
placeholder_text = gr.Textbox(label="Review:", value="HELLO! Hallo!", visible=False)
|
| 184 |
interpretation2 = gr.components.Interpretation(placeholder_text)
|
| 185 |
# image_1_2 = gr.Image('icon_robot.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
| 186 |
chatbot1 = gr.Chatbot(height=200, min_width=50, container=False) # height=300
|
|
|
|
| 195 |
|
| 196 |
with gr.Row():
|
| 197 |
with gr.Column():
|
| 198 |
+
text_written = gr.Textbox(label="Review: ", placeholder="Now try your own!", visible=True)
|
| 199 |
# image_1_3 = gr.Image('icon_user.png', height=80, width=80, min_width=80, show_label=False, show_share_button=False, interactive=False)
|
| 200 |
slider_1_3 = gr.Slider(label="Human: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 201 |
lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
|