HydroFlyer53 commited on
Commit
5d78feb
·
verified ·
1 Parent(s): 71ee2a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
- """SusAI ©2025 Intern Labs. v1.1.0"""
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()