Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
ce17a21
1
Parent(s):
6ac6a23
fixed order
Browse files
app.py
CHANGED
@@ -44,19 +44,19 @@ with gr.Blocks() as iface:
|
|
44 |
"detective. You use formal language and are very well educated in history, especially medieval "
|
45 |
"history. You have a bubbly personality. "]
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
with gr.Tab(roles[i]):
|
55 |
chatbot.append(gr.Chatbot())
|
56 |
msg.append(gr.Textbox())
|
57 |
i += 1
|
58 |
-
|
59 |
-
|
60 |
|
61 |
def user(user_message, history):
|
62 |
return "", history + [[user_message, None]]
|
|
|
44 |
"detective. You use formal language and are very well educated in history, especially medieval "
|
45 |
"history. You have a bubbly personality. "]
|
46 |
|
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=8):
|
52 |
+
i = 0
|
53 |
+
while i < len(roles):
|
54 |
with gr.Tab(roles[i]):
|
55 |
chatbot.append(gr.Chatbot())
|
56 |
msg.append(gr.Textbox())
|
57 |
i += 1
|
58 |
+
with gr.Column(scale=2):
|
59 |
+
characterImage = gr.Image()
|
60 |
|
61 |
def user(user_message, history):
|
62 |
return "", history + [[user_message, None]]
|