File size: 354 Bytes
8c3a73e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File: app.py
import gradio as gr
from retrieval import rag_query

def gradio_interface(query: str) -> str:
    return rag_query(query)

iface = gr.Interface(
    fn=gradio_interface,
    inputs="text",
    outputs="text",
    title="arXiv RAG System",
    description="Ask questions about arXiv papers"
)

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