Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
139 |
show_copy_button=True,
|
140 |
show_share_button=True,
|
141 |
)
|
142 |
-
|
143 |
|
144 |
with gr.Row():
|
145 |
txt = gr.Textbox(
|
@@ -165,7 +165,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
165 |
try:
|
166 |
# Turn off interactivity while generating if you hit enter
|
167 |
txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
168 |
-
bot, [chatbot, api_kind], [
|
169 |
except Exception as e:
|
170 |
print ('Exception ' ,str(e))
|
171 |
|
|
|
139 |
show_copy_button=True,
|
140 |
show_share_button=True,
|
141 |
)
|
142 |
+
chattext = gr.Textbox()
|
143 |
|
144 |
with gr.Row():
|
145 |
txt = gr.Textbox(
|
|
|
165 |
try:
|
166 |
# Turn off interactivity while generating if you hit enter
|
167 |
txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
168 |
+
bot, [chatbot, api_kind], [chattext, prompt_html])
|
169 |
except Exception as e:
|
170 |
print ('Exception ' ,str(e))
|
171 |
|