Samspace / app.py
sammykaranam's picture
Fixed errors in code
6c8d0d0 verified
Raw
History Blame Contribute Delete
257 Bytes
import random
import gradio as gr
from huggingface_hub import InferenceClient
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
def respond(message, history):
return random.choice(["Yes", "No"])
chatbot = gr.ChatInterface(respond)
chatbot.launch()