Spaces:
Sleeping
Sleeping
File size: 665 Bytes
54e8517 da21c34 54e8517 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
from agent import Model
def process_query(query):
return Model(query)
# Create the Gradio interface
iface = gr.Interface(
fn=process_query,
inputs=gr.Textbox(lines=2, placeholder="Ask a question about any url you have..."),
outputs="text",
title="Welcome to Web-sight 👀👋",
description="Web-sight is uses **RAG(Retrieval Augmented Generation)** to retrieve and analyze content from website. \n\n\n Simply provide Web-sight with a clear instruction and include the URL of the website you'd like to gte information about.",
theme="default",
allow_flagging="never"
)
# Launch the app
iface.launch(share=True) |