searchgpt / app.py
hadadrjt's picture
SearchGPT: Raise queuing and iterations.
3d7391f
#
# 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
)