Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines567891020 unmodified lines31323334353637383940414 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#this is where you change the LLMdemo.launch()def respond(message,history):20 unmodified lineschat_answer = random.choice(choices)return chat_answerwith gr.Blocks(theme=gr.themes.Base()) as demo:gr.Markdown("Hello, world!")gr.Button("Click me")chatbot = gr.ChatInterface(respond, type = "messages")chatbot.launch()4 unmodified lines5678910111213141516171820 unmodified lines3940414243444 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#this is where you change the LLMwith gr.Blocks() as demo:gr.Markdown("# Simple Q&A Chatbot")question = gr.Textbox(label="Your Question", placeholder="Type your question here...")answer = gr.Textbox(label="Chatbot Answer", interactive=False)question.submit(fn=chatbot_response, inputs=question, outputs=answer)demo.launch()def respond(message,history):20 unmodified lineschat_answer = random.choice(choices)return chat_answerchatbot = gr.ChatInterface(respond, type = "messages")chatbot.launch()
app.py+8-5