QAModel / app.py
nneka's picture
Update app.py
b66d423 verified
raw
history blame
No virus
443 Bytes
import gradio as gr
# Define the interface components
context_textbox = gr.Textbox(lines=10, label="Context")
question_textbox = gr.Textbox(label="Question")
output_label = gr.Label(label="Response: ")
interface = gr.Interface(
fn=get_response,
inputs=[context_textbox, question_textbox],
outputs=output_label,
title="QA System",
description="Ask any questions.",
)
# Launch the interface
interface.launch(share=True)