seanpedrickcase commited on
Commit
4631b8d
·
1 Parent(s): 19882cf

Package updates (gradio to 6.0.1)

Browse files
Files changed (4) hide show
  1. app.py +4 -4
  2. requirements.txt +3 -3
  3. requirements_aws.txt +2 -2
  4. requirements_gpu.txt +3 -3
app.py CHANGED
@@ -142,7 +142,7 @@ def load_model(model_type:str, gpu_layers:int, gpu_config:dict=gpu_config, cpu_c
142
  # RUN UI
143
  ###
144
 
145
- app = gr.Blocks(theme = gr.themes.Default(primary_hue="blue"), fill_width=True)#css=".gradio-container {background-color: black}")
146
 
147
  with app:
148
  model_type = SMALL_MODEL_NAME
@@ -203,7 +203,7 @@ with app:
203
 
204
  with gr.Row():
205
  #chat_height = 500
206
- chatbot = gr.Chatbot(value=None, avatar_images=('user.jfif', 'bot.jpg'), scale = 1, resizable=True, show_copy_all_button=True, show_copy_button=True, show_share_button=None, type='messages', max_height=500)
207
  with gr.Accordion("Source paragraphs with the most relevant text will appear here", open = True):
208
  sources = gr.HTML(value = "No relevant source paragraphs currently loaded", max_height=500) # , height=chat_height
209
 
@@ -352,6 +352,6 @@ with app:
352
 
353
  if __name__ == "__main__":
354
  if COGNITO_AUTH == "1":
355
- app.queue(max_size=int(MAX_QUEUE_SIZE), default_concurrency_limit=int(DEFAULT_CONCURRENCY_LIMIT)).launch(show_error=True, inbrowser=True, auth=authenticate_user, max_file_size=MAX_FILE_SIZE, server_port=GRADIO_SERVER_PORT, root_path=ROOT_PATH)
356
  else:
357
- app.queue(max_size=int(MAX_QUEUE_SIZE), default_concurrency_limit=int(DEFAULT_CONCURRENCY_LIMIT)).launch(show_error=True, inbrowser=True, max_file_size=MAX_FILE_SIZE, server_port=GRADIO_SERVER_PORT, root_path=ROOT_PATH)
 
142
  # RUN UI
143
  ###
144
 
145
+ app = gr.Blocks(fill_width=True)#css=".gradio-container {background-color: black}")
146
 
147
  with app:
148
  model_type = SMALL_MODEL_NAME
 
203
 
204
  with gr.Row():
205
  #chat_height = 500
206
+ chatbot = gr.Chatbot(value=None, avatar_images=('user.jfif', 'bot.jpg'), scale = 1, resizable=True, buttons=['copy', 'copy_all', 'share'], max_height=500)
207
  with gr.Accordion("Source paragraphs with the most relevant text will appear here", open = True):
208
  sources = gr.HTML(value = "No relevant source paragraphs currently loaded", max_height=500) # , height=chat_height
209
 
 
352
 
353
  if __name__ == "__main__":
354
  if COGNITO_AUTH == "1":
355
+ app.queue(max_size=int(MAX_QUEUE_SIZE), default_concurrency_limit=int(DEFAULT_CONCURRENCY_LIMIT)).launch(show_error=True, inbrowser=True, auth=authenticate_user, max_file_size=MAX_FILE_SIZE, server_port=GRADIO_SERVER_PORT, root_path=ROOT_PATH, theme = gr.themes.Default(primary_hue="blue"))
356
  else:
357
+ app.queue(max_size=int(MAX_QUEUE_SIZE), default_concurrency_limit=int(DEFAULT_CONCURRENCY_LIMIT)).launch(show_error=True, inbrowser=True, max_file_size=MAX_FILE_SIZE, server_port=GRADIO_SERVER_PORT, root_path=ROOT_PATH, theme = gr.themes.Default(primary_hue="blue"))
requirements.txt CHANGED
@@ -2,15 +2,15 @@ beautifulsoup4==4.13.4
2
  google-genai==1.50.0
3
  pandas==2.3.3
4
  markdown==3.8.1
5
- transformers==4.57.1
6
- torch>=2.6.0 --extra-index-url https://download.pytorch.org/whl/cpu
7
  sentence_transformers==5.1.2
8
  faiss-cpu==1.10.0
9
  pypdf==5.4.0
10
  python-docx==1.1.2
11
  keybert==0.9.0
12
  span-marker==1.7.0
13
- gradio==5.49.1
14
  nltk==3.9.1
15
  bm25s==0.2.14
16
  PyStemmer==2.2.0.3
 
2
  google-genai==1.50.0
3
  pandas==2.3.3
4
  markdown==3.8.1
5
+ transformers==4.57.2
6
+ torch>=2.8.0 --extra-index-url https://download.pytorch.org/whl/cpu
7
  sentence_transformers==5.1.2
8
  faiss-cpu==1.10.0
9
  pypdf==5.4.0
10
  python-docx==1.1.2
11
  keybert==0.9.0
12
  span-marker==1.7.0
13
+ gradio==6.0.1
14
  nltk==3.9.1
15
  bm25s==0.2.14
16
  PyStemmer==2.2.0.3
requirements_aws.txt CHANGED
@@ -5,11 +5,11 @@ beautifulsoup4==4.13.4
5
  google-genai==1.50.0
6
  pandas==2.3.3
7
  markdown==3.8.1
8
- transformers==4.57.1
9
  faiss-cpu==1.10.0
10
  pypdf==5.4.0
11
  python-docx==1.1.2
12
- gradio==5.49.1
13
  nltk==3.9.1
14
  bm25s==0.2.14
15
  PyStemmer==2.2.0.3
 
5
  google-genai==1.50.0
6
  pandas==2.3.3
7
  markdown==3.8.1
8
+ transformers==4.57.2
9
  faiss-cpu==1.10.0
10
  pypdf==5.4.0
11
  python-docx==1.1.2
12
+ gradio==6.0.1
13
  nltk==3.9.1
14
  bm25s==0.2.14
15
  PyStemmer==2.2.0.3
requirements_gpu.txt CHANGED
@@ -2,15 +2,15 @@ beautifulsoup4==4.13.4
2
  google-genai==1.50.0
3
  pandas==2.3.3
4
  markdown==3.8.1
5
- transformers==4.57.1
6
- torch>=2.6.0 --extra-index-url https://download.pytorch.org/whl/cu126
7
  sentence_transformers==5.1.2
8
  faiss-cpu==1.10.0
9
  pypdf==5.4.0
10
  python-docx==1.1.2
11
  keybert==0.9.0
12
  span-marker==1.7.0
13
- gradio==5.49.1
14
  nltk==3.9.1
15
  bm25s==0.2.14
16
  PyStemmer==2.2.0.3
 
2
  google-genai==1.50.0
3
  pandas==2.3.3
4
  markdown==3.8.1
5
+ transformers==4.57.2
6
+ torch>=2.8.0 --extra-index-url https://download.pytorch.org/whl/cu129
7
  sentence_transformers==5.1.2
8
  faiss-cpu==1.10.0
9
  pypdf==5.4.0
10
  python-docx==1.1.2
11
  keybert==0.9.0
12
  span-marker==1.7.0
13
+ gradio==6.0.1
14
  nltk==3.9.1
15
  bm25s==0.2.14
16
  PyStemmer==2.2.0.3