Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
7b69fde
1
Parent(s):
ce17a21
adjusted layout
Browse files
app.py
CHANGED
@@ -47,16 +47,18 @@ with gr.Blocks() as iface:
|
|
47 |
with gr.Row():
|
48 |
with gr.Column(scale=2):
|
49 |
questionCounter = gr.Label(value="Remaining Questions: 24")
|
50 |
-
finishButton = gr.Button()
|
51 |
-
with gr.Column(scale=
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
60 |
|
61 |
def user(user_message, history):
|
62 |
return "", history + [[user_message, None]]
|
|
|
47 |
with gr.Row():
|
48 |
with gr.Column(scale=2):
|
49 |
questionCounter = gr.Label(value="Remaining Questions: 24")
|
50 |
+
finishButton = gr.Button("Try to Solve")
|
51 |
+
with gr.Column(scale=10):
|
52 |
+
with gr.Row():
|
53 |
+
with gr.Column(scale=9):
|
54 |
+
i = 0
|
55 |
+
while i < len(roles):
|
56 |
+
with gr.Tab(roles[i]):
|
57 |
+
chatbot.append(gr.Chatbot())
|
58 |
+
msg.append(gr.Textbox())
|
59 |
+
i += 1
|
60 |
+
with gr.Column(scale=3):
|
61 |
+
characterImage = gr.Label()
|
62 |
|
63 |
def user(user_message, history):
|
64 |
return "", history + [[user_message, None]]
|