towhidultonmoy commited on
Commit
1f41d17
·
1 Parent(s): ff6a9c6

file_updated1

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -7,15 +7,15 @@ from byaldi import RAGMultiModalModel
7
  from openai import OpenAI
8
 
9
  # Function to unzip a folder if it does not exist
10
- def unzip_folder_if_not_exist(zip_path, extract_to):
11
- if not os.path.exists(extract_to):
12
- with zipfile.ZipFile(zip_path, 'r') as zip_ref:
13
- zip_ref.extractall(extract_to)
14
 
15
- # Example usage
16
- zip_path = 'medical_index.zip'
17
- extract_to = 'medical_index'
18
- unzip_folder_if_not_exist(zip_path, extract_to)
19
 
20
  # Preload the RAGMultiModalModel
21
  @st.cache_resource
 
7
  from openai import OpenAI
8
 
9
  # Function to unzip a folder if it does not exist
10
+ # def unzip_folder_if_not_exist(zip_path, extract_to):
11
+ # if not os.path.exists(extract_to):
12
+ # with zipfile.ZipFile(zip_path, 'r') as zip_ref:
13
+ # zip_ref.extractall(extract_to)
14
 
15
+ # # Example usage
16
+ # zip_path = 'medical_index.zip'
17
+ # extract_to = 'medical_index'
18
+ # unzip_folder_if_not_exist(zip_path, extract_to)
19
 
20
  # Preload the RAGMultiModalModel
21
  @st.cache_resource