File size: 443 Bytes
b32e172
cabfc30
f84c4de
b32e172
 
 
 
 
 
 
 
 
0cc9a20
 
b32e172
 
 
4ce3dee
ac90090
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)