Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
•
9f9aee0
1
Parent(s):
e5c8bfa
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,21 @@ with gr.Blocks(title='Text to Image') as demo:
|
|
126 |
start_button.click(fn=None, inputs=[], outputs=[], _js=start_work)
|
127 |
|
128 |
with gr.Group(elem_id="page_2", visible=False) as page_2:
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
# chatbot.change(chat,
|
131 |
# ["text", "state"],
|
132 |
# [chatbot, "state"],
|
|
|
126 |
start_button.click(fn=None, inputs=[], outputs=[], _js=start_work)
|
127 |
|
128 |
with gr.Group(elem_id="page_2", visible=False) as page_2:
|
129 |
+
with gr.Row(elem_id="prompt_row"):
|
130 |
+
chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
|
131 |
+
prompt_input0 = gr.Textbox(lines=4, label="prompt")
|
132 |
+
with gr.Row():
|
133 |
+
submit_btn = gr.Button(value = "submit",elem_id="erase-btn").style(
|
134 |
+
margin=True,
|
135 |
+
rounded=(True, True, True, True),
|
136 |
+
)
|
137 |
+
submit_btn.click(fn=chat,
|
138 |
+
inputs=[prompt_input0, "state"],
|
139 |
+
outputs=[chatbot, "state"],
|
140 |
+
)
|
141 |
+
|
142 |
+
# chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
|
143 |
+
# prompt_input0 = gr.Textbox(lines=4, label="prompt")
|
144 |
# chatbot.change(chat,
|
145 |
# ["text", "state"],
|
146 |
# [chatbot, "state"],
|