Spaces:
Runtime error
Runtime error
File size: 398 Bytes
e24d892 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from gradio_client import Client
# Replace with your own model
client = Client("IdenGhost/Qwen-Qwen2.5-Coder-32B-Instruct")
def chatbot(message):
result = client.predict(message=message, api_name="/chat")
return result
# Create the Gradio interface
iface = gr.Interface(fn=chatbot, inputs="text", outputs="text")
# Launch the interface
iface.launch()
|