creaturebot's picture
Upload app.py
e24d892 verified
raw
history blame contribute delete
398 Bytes
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()