Jakob08 commited on
Commit
544ecca
·
verified ·
1 Parent(s): 021bfc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -1,14 +1,11 @@
1
- #
2
- # SPDX-FileCopyrightText: Hadad <[email protected]>
3
- # SPDX-License-Identifier: Apache-2.0
4
- #
5
-
6
  from src.processor.message_processor import searchgpt_playground
7
  from config import DESCRIPTION
8
  import gradio as gr
9
 
10
- with gr.Blocks(fill_height=True, fill_width=True) as app:
11
- with gr.Sidebar(): gr.HTML(DESCRIPTION)
 
 
12
  gr.ChatInterface(
13
  fn=searchgpt_playground,
14
  chatbot=gr.Chatbot(
@@ -17,8 +14,7 @@ with gr.Blocks(fill_height=True, fill_width=True) as app:
17
  show_copy_button=True,
18
  scale=1
19
  ),
20
- type="messages", # 2025-09-10: Shut up!
21
-
22
  cache_examples=False,
23
  show_api=False,
24
  concurrency_limit=3
@@ -27,4 +23,4 @@ with gr.Blocks(fill_height=True, fill_width=True) as app:
27
  app.launch(
28
  server_name="0.0.0.0",
29
  pwa=True
30
- )
 
 
 
 
 
 
1
  from src.processor.message_processor import searchgpt_playground
2
  from config import DESCRIPTION
3
  import gradio as gr
4
 
5
+ # Falls style.css im Hauptverzeichnis liegt:
6
+ with gr.Blocks(css="style.css", fill_height=True, fill_width=True) as app:
7
+ with gr.Sidebar():
8
+ gr.HTML(DESCRIPTION)
9
  gr.ChatInterface(
10
  fn=searchgpt_playground,
11
  chatbot=gr.Chatbot(
 
14
  show_copy_button=True,
15
  scale=1
16
  ),
17
+ type="messages",
 
18
  cache_examples=False,
19
  show_api=False,
20
  concurrency_limit=3
 
23
  app.launch(
24
  server_name="0.0.0.0",
25
  pwa=True
26
+ )