JRQi commited on
Commit
c221cb8
1 Parent(s): 123fd35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,7 +123,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
123
  chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
124
  slider_1_2 = gr.Slider(label="AI rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
125
  interpre_button = gr.Button("See how AI got its rating", size='sm')
126
- placeholder_text = gr.Textbox(label="Red higlights: Positive / Blue higlights: Negative", value="HELLO! Hallo!", visible=False)
127
  interpretation2 = gr.components.Interpretation(placeholder_text)
128
  with gr.Column(scale=1):
129
  chatbot1 = gr.Chatbot(height=230, min_width=50, container=False) # height=300
@@ -142,7 +142,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
142
  slider_1_3 = gr.Slider(label="Your rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
143
  lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
144
  chat_button_2 = gr.Button("Click to see AI's rating", size='sm')
145
- placeholder_written_text = gr.Textbox(label="Red higlights: Positive / Blue higlights: Negative", value="HELLO! Hallo!", visible=False)
146
  interpretation4 = gr.components.Interpretation(placeholder_written_text)
147
  slider_1_4 = gr.Slider(label="AI rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
148
  with gr.Column(scale=1):
 
123
  chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
124
  slider_1_2 = gr.Slider(label="AI rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
125
  interpre_button = gr.Button("See how AI got its rating", size='sm')
126
+ placeholder_text = gr.Textbox(label="Red higlights: Negative / Blue higlights: Positive", value="HELLO! Hallo!", visible=False)
127
  interpretation2 = gr.components.Interpretation(placeholder_text)
128
  with gr.Column(scale=1):
129
  chatbot1 = gr.Chatbot(height=230, min_width=50, container=False) # height=300
 
142
  slider_1_3 = gr.Slider(label="Your rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
143
  lang_written = gr.Radio(["English", "Dutch"], label="Language:", info="In which language is the review written?")
144
  chat_button_2 = gr.Button("Click to see AI's rating", size='sm')
145
+ placeholder_written_text = gr.Textbox(label="Red higlights: Negative / Blue higlights: Positive", value="HELLO! Hallo!", visible=False)
146
  interpretation4 = gr.components.Interpretation(placeholder_written_text)
147
  slider_1_4 = gr.Slider(label="AI rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
148
  with gr.Column(scale=1):