Riswan-Nopiyar
commited on
Commit
•
b0365bd
1
Parent(s):
0e60db1
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ with gr.Blocks(fill_height=True, css="footer {visibility: hidden}") as demo:
|
|
18 |
render_markdown=True,
|
19 |
sanitize_html=True,
|
20 |
show_copy_button=True,
|
21 |
-
likeable=True,
|
22 |
value=initial_messages
|
23 |
)
|
24 |
|
@@ -28,6 +27,6 @@ with gr.Blocks(fill_height=True, css="footer {visibility: hidden}") as demo:
|
|
28 |
bot_msg = chat_msg.then(chat_mem, inputs=[chat_input, chatbot], outputs=[chat_input, chatbot], api_name="bot_response")
|
29 |
bot_msg.then(lambda: gr.Textbox(interactive=True), None, [chat_input])
|
30 |
|
31 |
-
chatbot.like(print_like_dislike, None, None)
|
32 |
|
33 |
-
demo.launch()
|
|
|
18 |
render_markdown=True,
|
19 |
sanitize_html=True,
|
20 |
show_copy_button=True,
|
|
|
21 |
value=initial_messages
|
22 |
)
|
23 |
|
|
|
27 |
bot_msg = chat_msg.then(chat_mem, inputs=[chat_input, chatbot], outputs=[chat_input, chatbot], api_name="bot_response")
|
28 |
bot_msg.then(lambda: gr.Textbox(interactive=True), None, [chat_input])
|
29 |
|
30 |
+
chatbot.like(print_like_dislike, None, None) # Menjaga fitur like (tetap bisa digunakan jika perlu)
|
31 |
|
32 |
+
demo.launch()
|