studychatbot / app.py
MissieMcCown's picture
Update app.py
f8cae87 verified
raw
history blame
547 Bytes
import gradio as gr
# Simple chatbot response function
def chatbot_response(user_input):
return f"You said: {user_input}"
# Gradio interface setup
with gr.Blocks() as demo:
gr.Markdown("### Study Assistance Chatbot")
user_input = gr.Textbox(label="Enter your question here:", placeholder="Type your question...")
chatbot_output = gr.Textbox(label="Chatbot Response")
submit_button = gr.Button("Submit")
submit_button.click(chatbot_response, inputs=user_input, outputs=chatbot_output)
# Launch Gradio
demo.launch()