Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines5678910111213141516171820 unmodified lines39404134353637384243444 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#this is where you change the LLM
with 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 lines chat_answer = random.choice(choices) return chat_answer
with gr.Blocks(theme=gr.themes.Base()) as demo: gr.Markdown("Hello, world!") gr.Button("Click me")
chatbot = gr.ChatInterface(respond, type = "messages")
chatbot.launch()app.py+8-5