File size: 1,545 Bytes
408c946 ff25271 408c946 29dc222 408c946 ff25271 29dc222 5ee51d1 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 39 40 41 42 43 |
#
# SPDX-FileCopyrightText: Hadad <[email protected]>
# 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?"],
["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
) |