Spaces:
Sleeping
Sleeping
File size: 465 Bytes
70f97a8 3bb0ff3 70f97a8 65477fd 70f97a8 3bb0ff3 70f97a8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
from rag_app import rag_answer
def answer_fn(query: str):
return rag_answer(query, k=2)
demo = gr.Interface(
fn=answer_fn,
inputs=gr.Textbox(
lines=2,
label="Ask about regional news",
placeholder=""
),
outputs="text",
title="Regional News RAG Chatbot",
description="Retrieves BC/Canada news articles and summarizes them using extractive RAG."
)
if __name__ == "__main__":
demo.launch()
|