Spaces:
Runtime error
Runtime error
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() | |