Spaces:
Runtime error
Runtime error
mkw18
commited on
Commit
·
0e83748
1
Parent(s):
de34c46
layout
Browse files
app.py
CHANGED
@@ -146,18 +146,20 @@ with gr.Blocks() as demo:
|
|
146 |
answer = gr.State(data['answer'])
|
147 |
idx = gr.State(data['idx'])
|
148 |
show_ans = gr.State(False)
|
149 |
-
|
150 |
-
question = gr.Textbox(label='汤面', value=data['story'].strip(),
|
151 |
-
lines=1, max_lines=3).style(container=False)
|
152 |
|
153 |
with gr.Row():
|
154 |
with gr.Column(scale=4):
|
155 |
-
|
156 |
-
|
|
|
|
|
157 |
container=False)
|
158 |
-
with gr.
|
159 |
-
|
160 |
-
|
|
|
|
|
161 |
with gr.Column(scale=1):
|
162 |
answer_output = gr.Textbox(show_label=False, lines=6, max_lines=6).style(
|
163 |
container=False)
|
|
|
146 |
answer = gr.State(data['answer'])
|
147 |
idx = gr.State(data['idx'])
|
148 |
show_ans = gr.State(False)
|
149 |
+
|
|
|
|
|
150 |
|
151 |
with gr.Row():
|
152 |
with gr.Column(scale=4):
|
153 |
+
question = gr.Textbox(label='汤面', value=data['story'].strip(),
|
154 |
+
lines=1, max_lines=3).style(container=False)
|
155 |
+
with gr.Row():
|
156 |
+
user_input = gr.Textbox(show_label=False, placeholder="请输入你的猜测...", lines=1, max_lines=3).style(
|
157 |
container=False)
|
158 |
+
with gr.Row():
|
159 |
+
with gr.Column(scale=2):
|
160 |
+
submitBtn = gr.Button("发送", variant="primary")
|
161 |
+
with gr.Column(scale=2):
|
162 |
+
emptyBtn = gr.Button("再来一局")
|
163 |
with gr.Column(scale=1):
|
164 |
answer_output = gr.Textbox(show_label=False, lines=6, max_lines=6).style(
|
165 |
container=False)
|