creaturebot commited on
Commit
e24d892
·
verified ·
1 Parent(s): c19701b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_client import Client
3
+
4
+ # Replace with your own model
5
+ client = Client("IdenGhost/Qwen-Qwen2.5-Coder-32B-Instruct")
6
+
7
+ def chatbot(message):
8
+ result = client.predict(message=message, api_name="/chat")
9
+ return result
10
+
11
+ # Create the Gradio interface
12
+ iface = gr.Interface(fn=chatbot, inputs="text", outputs="text")
13
+
14
+ # Launch the interface
15
+ iface.launch()