Update app.py
Browse files
app.py
CHANGED
|
@@ -530,7 +530,7 @@ def create_app():
|
|
| 530 |
height=500,
|
| 531 |
show_copy_button=True,
|
| 532 |
show_label=False,
|
| 533 |
-
avatar_images=(None, "https://upload.wikimedia.org/wikipedia/commons/0/04/ChatGPT_logo.svg"),
|
| 534 |
type="messages" # Fixed: Use messages format instead of tuples
|
| 535 |
)
|
| 536 |
|
|
@@ -827,7 +827,8 @@ def create_app():
|
|
| 827 |
top_k, min_p, seed, top_a, stream_output, response_format,
|
| 828 |
images, documents, reasoning_effort, system_message, transforms
|
| 829 |
],
|
| 830 |
-
outputs=[chatbot, message]
|
|
|
|
| 831 |
)
|
| 832 |
|
| 833 |
# Set up events for message submission (pressing Enter)
|
|
@@ -839,7 +840,8 @@ def create_app():
|
|
| 839 |
top_k, min_p, seed, top_a, stream_output, response_format,
|
| 840 |
images, documents, reasoning_effort, system_message, transforms
|
| 841 |
],
|
| 842 |
-
outputs=[chatbot, message]
|
|
|
|
| 843 |
)
|
| 844 |
|
| 845 |
# Set up events for the clear button
|
|
|
|
| 530 |
height=500,
|
| 531 |
show_copy_button=True,
|
| 532 |
show_label=False,
|
| 533 |
+
# avatar_images=(None, "https://upload.wikimedia.org/wikipedia/commons/0/04/ChatGPT_logo.svg"),
|
| 534 |
type="messages" # Fixed: Use messages format instead of tuples
|
| 535 |
)
|
| 536 |
|
|
|
|
| 827 |
top_k, min_p, seed, top_a, stream_output, response_format,
|
| 828 |
images, documents, reasoning_effort, system_message, transforms
|
| 829 |
],
|
| 830 |
+
outputs=[chatbot, message],
|
| 831 |
+
api_name=False # ensure direct function calling
|
| 832 |
)
|
| 833 |
|
| 834 |
# Set up events for message submission (pressing Enter)
|
|
|
|
| 840 |
top_k, min_p, seed, top_a, stream_output, response_format,
|
| 841 |
images, documents, reasoning_effort, system_message, transforms
|
| 842 |
],
|
| 843 |
+
outputs=[chatbot, message],
|
| 844 |
+
api_name=False # ensure direct function calling
|
| 845 |
)
|
| 846 |
|
| 847 |
# Set up events for the clear button
|