File size: 1,200 Bytes
408c946
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff25271
408c946
 
 
 
ff25271
 
 
 
408c946
 
ed54077
3d7391f
408c946
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#

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",  # 2025-09-10: Shut up!
        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"]
        ],
        cache_examples=False,
        show_api=False,
        concurrency_limit=5
    )

app.launch(
    server_name="0.0.0.0",
    pwa=True
)