Spaces:
Paused
Paused
# 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() | |