Jonas Wiesli commited on
Commit
ce17a21
1 Parent(s): 6ac6a23

fixed order

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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
- i = 0
48
- while i < len(roles):
49
- with gr.Row():
50
- with gr.Column(scale=2):
51
- questionCounter = gr.Label(value="Remaining Questions: 24")
52
- finishButton = gr.Button()
53
- with gr.Column(scale=8):
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]]
 
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]]