JRQi commited on
Commit
a7e6032
β€’
1 Parent(s): f197299

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -120,7 +120,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
120
  chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
121
  slider_1_2 = gr.Slider(label="AI rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
122
  interpre_button = gr.Button("See how AI got its rating", size='sm')
123
- placeholder_text = gr.Textbox(label="Review:", value="HELLO! Hallo!", visible=False)
124
  interpretation2 = gr.components.Interpretation(placeholder_text)
125
  with gr.Column(scale=1):
126
  chatbot1 = gr.Chatbot(height=230, min_width=50, container=False) # height=300
@@ -139,7 +139,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
139
  slider_1_3 = gr.Slider(label="Your rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
140
  lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
141
  chat_button_2 = gr.Button("Click to see AI's rating", size='sm')
142
- placeholder_written_text = gr.Textbox(label="Review: ", value="HELLO! Hallo!", visible=False)
143
  interpretation4 = gr.components.Interpretation(placeholder_written_text)
144
  slider_1_4 = gr.Slider(label="AI rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
145
  with gr.Column(scale=1):
@@ -199,7 +199,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
199
  chat_button_mf = gr.Button("Click to see AI's answer.", size='sm')
200
  slider_3_2 = gr.Slider(label="AI: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
201
  interpre_button_mf = gr.Button("See how AI gets the answer.", size='sm')
202
- placeholder_text_mf = gr.Textbox(label="Sentence:", value="HELLO! Hallo!", visible=False)
203
  interpretation_mf_2 = gr.components.Interpretation(placeholder_text_mf)
204
  with gr.Column(scale=1):
205
  chatbot_mf_1 = gr.Chatbot(height=230, min_width=50, container=False)
@@ -216,7 +216,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
216
  text_written_mf = gr.Textbox(label="Sentence: ", placeholder="Enter your sentence.", visible=True)
217
  slider_3_3 = gr.Slider(label="Human: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
218
  chat_button_mf_2 = gr.Button("Click to see AI's answer.", size='sm')
219
- placeholder_written_text_mf = gr.Textbox(label="Sentence: ", value="HELLO! Hallo!", visible=False)
220
  interpretation_mf_4 = gr.components.Interpretation(placeholder_written_text_mf)
221
  slider_3_4 = gr.Slider(label="AI: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
222
  with gr.Column(scale=1):
 
120
  chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
121
  slider_1_2 = gr.Slider(label="AI rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
122
  interpre_button = gr.Button("See how AI got its rating", size='sm')
123
+ placeholder_text = gr.Textbox(label="Review: (Red: Positive; Blue: Negative)", value="HELLO! Hallo!", visible=False)
124
  interpretation2 = gr.components.Interpretation(placeholder_text)
125
  with gr.Column(scale=1):
126
  chatbot1 = gr.Chatbot(height=230, min_width=50, container=False) # height=300
 
139
  slider_1_3 = gr.Slider(label="Your rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
140
  lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
141
  chat_button_2 = gr.Button("Click to see AI's rating", size='sm')
142
+ placeholder_written_text = gr.Textbox(label="Review: (Red: Positive; Blue: Negative)", value="HELLO! Hallo!", visible=False)
143
  interpretation4 = gr.components.Interpretation(placeholder_written_text)
144
  slider_1_4 = gr.Slider(label="AI rating: Dislike(0) β€”> Like(100)", container=True, min_width=200, height=80, show_label=True, interactive=True)
145
  with gr.Column(scale=1):
 
199
  chat_button_mf = gr.Button("Click to see AI's answer.", size='sm')
200
  slider_3_2 = gr.Slider(label="AI: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
201
  interpre_button_mf = gr.Button("See how AI gets the answer.", size='sm')
202
+ placeholder_text_mf = gr.Textbox(label="Sentence: (Red: Female; Blue: Male)", value="HELLO! Hallo!", visible=False)
203
  interpretation_mf_2 = gr.components.Interpretation(placeholder_text_mf)
204
  with gr.Column(scale=1):
205
  chatbot_mf_1 = gr.Chatbot(height=230, min_width=50, container=False)
 
216
  text_written_mf = gr.Textbox(label="Sentence: ", placeholder="Enter your sentence.", visible=True)
217
  slider_3_3 = gr.Slider(label="Human: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
218
  chat_button_mf_2 = gr.Button("Click to see AI's answer.", size='sm')
219
+ placeholder_written_text_mf = gr.Textbox(label="Sentence: (Red: Female; Blue: Male)", value="HELLO! Hallo!", visible=False)
220
  interpretation_mf_4 = gr.components.Interpretation(placeholder_written_text_mf)
221
  slider_3_4 = gr.Slider(label="AI: Male β€”β€”> Female", container=True, min_width=200, height=80, show_label=True, interactive=True)
222
  with gr.Column(scale=1):