giannantonio15 commited on
Commit
a88ab04
1 Parent(s): 4e04acf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -76,7 +76,7 @@ css = """
76
  left: 77%;
77
  top: 10%;
78
  bottom: 10%; /* Adjust this value as necessary */
79
- width: 10%;
80
  max-height: 80%; /* Ensure it does not exceed 80% of the parent container's height */
81
  overflow-y: auto; /* Allow scrolling if content overflows vertically */
82
  overflow-x: hidden; /* Hide horizontal overflow */
@@ -371,13 +371,14 @@ def main():
371
  with gr.Row(elem_id="buttonChat"):
372
  gr.Button("STANDARD", size="sm").click(fn=select_standard_mode, outputs=output)
373
  gr.Button("CHAT",size="sm").click(fn=select_chat_mode, outputs=output)
374
-
375
- chatbot = gr.Chatbot(elem_id="chatbot", container=False)
376
-
377
- with gr.Column(elem_id="colonnaElementi"):
378
  gr.Dropdown(
379
  ["BANDI_SISTEMA_PUGLIA","BANDI"], label="Collezione di documenti", info="", container=False, interactive=True, value="BANDI_SISTEMA_PUGLIA", elem_id="dropdown"
380
  ).select(fn=select_collection, outputs=output)
 
 
 
 
 
381
 
382
  gr.Radio(["compact","tree_summarize"], label="Response mode", info="Influenzerà il modo in cui il chatbot risponde", interactive=True,container=False, value="tree_summarize",elem_id="responseMode").select(fn=select_response_mode, outputs=output),
383
 
 
76
  left: 77%;
77
  top: 10%;
78
  bottom: 10%; /* Adjust this value as necessary */
79
+ width: 11%;
80
  max-height: 80%; /* Ensure it does not exceed 80% of the parent container's height */
81
  overflow-y: auto; /* Allow scrolling if content overflows vertically */
82
  overflow-x: hidden; /* Hide horizontal overflow */
 
371
  with gr.Row(elem_id="buttonChat"):
372
  gr.Button("STANDARD", size="sm").click(fn=select_standard_mode, outputs=output)
373
  gr.Button("CHAT",size="sm").click(fn=select_chat_mode, outputs=output)
 
 
 
 
374
  gr.Dropdown(
375
  ["BANDI_SISTEMA_PUGLIA","BANDI"], label="Collezione di documenti", info="", container=False, interactive=True, value="BANDI_SISTEMA_PUGLIA", elem_id="dropdown"
376
  ).select(fn=select_collection, outputs=output)
377
+
378
+ chatbot = gr.Chatbot(elem_id="chatbot", container=False)
379
+
380
+ with gr.Column(elem_id="colonnaElementi"):
381
+
382
 
383
  gr.Radio(["compact","tree_summarize"], label="Response mode", info="Influenzerà il modo in cui il chatbot risponde", interactive=True,container=False, value="tree_summarize",elem_id="responseMode").select(fn=select_response_mode, outputs=output),
384