Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def vote(data: gr.LikeData):
|
|
| 65 |
else:
|
| 66 |
print("You downvoted this response: " + data.value)
|
| 67 |
with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as rxbot:
|
| 68 |
-
chatbot = gr.Chatbot(elem_id="chatbot",bubble_full_width=False,show_copy_button=True,avatar_images
|
| 69 |
state = gr.State([])
|
| 70 |
with gr.Row():
|
| 71 |
txt = gr.Textbox(show_label=False, placeholder="请输入你的问题").style(container=False)
|
|
@@ -78,7 +78,7 @@ with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as r
|
|
| 78 |
# clear = gr.ClearButton([txt, chatbot])
|
| 79 |
chatbot.like(vote, None, None)
|
| 80 |
|
| 81 |
-
rxbot.queue().launch(
|
| 82 |
|
| 83 |
|
| 84 |
|
|
|
|
| 65 |
else:
|
| 66 |
print("You downvoted this response: " + data.value)
|
| 67 |
with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as rxbot:
|
| 68 |
+
chatbot = gr.Chatbot(elem_id="chatbot",bubble_full_width=False,show_copy_button=True,avatar_images=('/home/user/app/lss.png', '/home/user/app/lss.png'),)
|
| 69 |
state = gr.State([])
|
| 70 |
with gr.Row():
|
| 71 |
txt = gr.Textbox(show_label=False, placeholder="请输入你的问题").style(container=False)
|
|
|
|
| 78 |
# clear = gr.ClearButton([txt, chatbot])
|
| 79 |
chatbot.like(vote, None, None)
|
| 80 |
|
| 81 |
+
rxbot.queue().launch(share=True)
|
| 82 |
|
| 83 |
|
| 84 |
|