|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"] |
|
|
], |
|
|
cache_examples=False, |
|
|
show_api=False |
|
|
) |
|
|
|
|
|
app.launch( |
|
|
server_name="0.0.0.0", |
|
|
pwa=True |
|
|
) |