Spaces:
Running
Running
| from src.processor.message_processor import searchgpt_playground | |
| from config import DESCRIPTION | |
| import gradio as gr | |
| # Falls style.css im Hauptverzeichnis liegt: | |
| with gr.Blocks(css="style.css", fill_height=True, fill_width=True) as app: | |
| with gr.Sidebar(): | |
| gr.HTML(DESCRIPTION) | |
| gr.ChatInterface( | |
| fn=searchgpt_playground, | |
| chatbot=gr.Chatbot( | |
| label="SearchGPT | GPT-4.1 (Nano)", | |
| type="messages", | |
| show_copy_button=True, | |
| scale=1 | |
| ), | |
| type="messages", | |
| cache_examples=False, | |
| show_api=False, | |
| concurrency_limit=3 | |
| ) | |
| app.launch( | |
| server_name="0.0.0.0", | |
| pwa=True | |
| ) | |