Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
·
e4434b8
1
Parent(s):
7f7ba6f
minor text change
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
|
|
135 |
with gr.Row():
|
136 |
with gr.Column(scale=9):
|
137 |
chatbot.append(gr.Chatbot(label=names[i] + ", " + roles[i]))
|
138 |
-
msg.append(gr.Textbox(label="", placeholder="
|
139 |
with gr.Column(scale=3):
|
140 |
characterImage = gr.Label(label="")
|
141 |
i += 1
|
@@ -208,7 +208,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
|
|
208 |
if remaining_questions > 0:
|
209 |
remaining_questions -= 1
|
210 |
return str(remaining_questions)
|
211 |
-
|
212 |
def check_if_questions_left(question_counter_text):
|
213 |
remaining_questions = int(question_counter_text["label"])
|
214 |
return remaining_questions > 0
|
@@ -229,13 +229,13 @@ with gr.Blocks(theme=theme, css=css) as iface:
|
|
229 |
|
230 |
def try_to_solve():
|
231 |
return {solvingRow: gr.update(visible=True)}
|
232 |
-
|
233 |
def show_map():
|
234 |
return {mapRow: gr.update(visible=True)}
|
235 |
-
|
236 |
def hide_solve_box():
|
237 |
return {solvingRow: gr.update(visible=False)}
|
238 |
-
|
239 |
def hide_map():
|
240 |
return {mapRow: gr.update(visible=False)}
|
241 |
|
|
|
135 |
with gr.Row():
|
136 |
with gr.Column(scale=9):
|
137 |
chatbot.append(gr.Chatbot(label=names[i] + ", " + roles[i]))
|
138 |
+
msg.append(gr.Textbox(label="", placeholder="Ask a question..."))
|
139 |
with gr.Column(scale=3):
|
140 |
characterImage = gr.Label(label="")
|
141 |
i += 1
|
|
|
208 |
if remaining_questions > 0:
|
209 |
remaining_questions -= 1
|
210 |
return str(remaining_questions)
|
211 |
+
|
212 |
def check_if_questions_left(question_counter_text):
|
213 |
remaining_questions = int(question_counter_text["label"])
|
214 |
return remaining_questions > 0
|
|
|
229 |
|
230 |
def try_to_solve():
|
231 |
return {solvingRow: gr.update(visible=True)}
|
232 |
+
|
233 |
def show_map():
|
234 |
return {mapRow: gr.update(visible=True)}
|
235 |
+
|
236 |
def hide_solve_box():
|
237 |
return {solvingRow: gr.update(visible=False)}
|
238 |
+
|
239 |
def hide_map():
|
240 |
return {mapRow: gr.update(visible=False)}
|
241 |
|