Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,3 @@
|
|
1 |
-
import os
|
2 |
-
import gdown
|
3 |
-
|
4 |
-
file_id = "1G_OK4BPWgqpgEK540VReSKhzOxKspjgy"
|
5 |
-
output_folder = "faiss_index" # Specify the folder name
|
6 |
-
output_file = os.path.join(output_folder, "index.faiss")
|
7 |
-
|
8 |
-
if not os.path.exists(output_file):
|
9 |
-
os.makedirs(output_folder, exist_ok=True) # Create the folder if it doesn't exist
|
10 |
-
url = f"https://drive.google.com/uc?id={file_id}"
|
11 |
-
gdown.download(url, output_file, quiet=False)
|
12 |
|
13 |
import streamlit as st
|
14 |
from streamlit_option_menu import option_menu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
import streamlit as st
|
3 |
from streamlit_option_menu import option_menu
|