Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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()
|