|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from src.processor.message_processor import process_user_request |
|
|
from config import DESCRIPTION |
|
|
import gradio as gr |
|
|
|
|
|
with gr.Blocks(fill_height=True, fill_width=True) as app: |
|
|
with gr.Sidebar(): gr.HTML(DESCRIPTION) |
|
|
gr.ChatInterface( |
|
|
fn=process_user_request, |
|
|
chatbot=gr.Chatbot( |
|
|
label="SearchGPT | GPT-4.1 (Nano)", |
|
|
type="messages", |
|
|
show_copy_button=True, |
|
|
scale=1 |
|
|
), |
|
|
type="messages", |
|
|
examples=[ |
|
|
["What is UltimaX Intelligence?"], |
|
|
["https://wikipedia.org/wiki/Artificial_intelligence Read and summarize that"], |
|
|
["What's the latest AI development in 2025?"], |
|
|
["OpenAI GPT-5 vs DeepSeek V3.1"], |
|
|
["Find the source link for the GPT-OSS model"], |
|
|
["https://huggingface.co/papers Extract the most popular papers"], |
|
|
["How to run Gemma 3 (270M) on CPU only?"], |
|
|
["What are the latest trends this year?"], |
|
|
["What caused World War 1 and 2?"], |
|
|
["https://huggingface.co/spaces?sort=trending What are the trending Spaces?"], |
|
|
["What is SearchGPT by umint? Compare it with ChatGPT Search and Perplexity"], |
|
|
["What hot issues are trending this month?"] |
|
|
], |
|
|
cache_examples=False, |
|
|
show_api=False, |
|
|
concurrency_limit=5 |
|
|
) |
|
|
|
|
|
app.launch( |
|
|
server_name="0.0.0.0", |
|
|
pwa=True |
|
|
) |