File size: 465 Bytes
0b22a5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio_app
from gradio_app import * 

# Create Gradio interface
iface = gr.Interface(
    fn=process_question,
    inputs=gr.Textbox(lines=2, placeholder="Enter your question here..."),
    outputs=[
        gr.Textbox(label="Answer"),
        gr.Textbox(label="Sources")
    ],
    title="NASA Report Q&A System",
    description="Ask questions about the NASA reports and get answers with sources."
)

if __name__ == "__main__":
    iface.launch(share=True)