Spaces:
Runtime error
Runtime error
Update app.py
Browse files12 unmodified lines13141516171819202112 unmodified linesquestion.submit(fn=chatbot_response, inputs=question, outputs=answer)demo.launch()def respond(message,history):messages = [{"role": "system", "content": "You are a mean chatbot."}]if history:12 unmodified lines13141516171819202122232425262712 unmodified linesquestion.submit(fn=chatbot_response, inputs=question, outputs=answer)def respond(message,history):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)messages = [{"role": "system", "content": "You are a mean chatbot."}]if history:
app.py+8-2