Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import os
|
3 |
import gradio as gr
|
4 |
from gradio_client import Client
|
@@ -22,10 +22,10 @@ def chat_with_ai(message, history):
|
|
22 |
top_p=0.60,
|
23 |
api_name="/chat"
|
24 |
)
|
25 |
-
return result
|
26 |
|
27 |
# Gradio Chat Interface
|
28 |
-
demo = gr.ChatInterface(fn=chat_with_ai)
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
demo.launch()
|
|
|
1 |
+
#SusAI ©2025 Intern Labs. v1.1.0
|
2 |
import os
|
3 |
import gradio as gr
|
4 |
from gradio_client import Client
|
|
|
22 |
top_p=0.60,
|
23 |
api_name="/chat"
|
24 |
)
|
25 |
+
return {"role": "assistant", "content": result}
|
26 |
|
27 |
# Gradio Chat Interface
|
28 |
+
demo = gr.ChatInterface(fn=chat_with_ai, type="messages")
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
demo.launch()
|