Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
·
eec819d
1
Parent(s):
cd1df3c
Update app.py
Browse files
app.py
CHANGED
@@ -145,13 +145,15 @@ with gr.Blocks(title='Text to Image') as demo:
|
|
145 |
|
146 |
# with gr.Group(elem_id="page_2", visible=False) as page_2:
|
147 |
with gr.Row(elem_id="prompt_row"):
|
148 |
-
chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
|
|
|
149 |
with gr.Row():
|
150 |
-
prompt_input0 = gr.Textbox(lines=
|
151 |
-
chat_history = gr.Textbox(lines=4, label="prompt", visible=
|
152 |
-
submit_btn = gr.Button(value = "submit",elem_id="
|
153 |
margin=True,
|
154 |
rounded=(True, True, True, True),
|
|
|
155 |
)
|
156 |
submit_btn.click(fn=chat,
|
157 |
inputs=[prompt_input0, chat_history],
|
|
|
145 |
|
146 |
# with gr.Group(elem_id="page_2", visible=False) as page_2:
|
147 |
with gr.Row(elem_id="prompt_row"):
|
148 |
+
chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
|
149 |
+
chatbot.change(None, show_progress=False)
|
150 |
with gr.Row():
|
151 |
+
prompt_input0 = gr.Textbox(lines=1, label="prompt",show_label=False)
|
152 |
+
chat_history = gr.Textbox(lines=4, label="prompt", visible=False)
|
153 |
+
submit_btn = gr.Button(value = "submit",elem_id="submit-btn").style(
|
154 |
margin=True,
|
155 |
rounded=(True, True, True, True),
|
156 |
+
width=100
|
157 |
)
|
158 |
submit_btn.click(fn=chat,
|
159 |
inputs=[prompt_input0, chat_history],
|