Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def get_device_map() -> str:
|
|
7 |
return 'cuda' if torch.cuda.is_available() else 'cpu'
|
8 |
device = get_device_map() # 'cpu'
|
9 |
|
10 |
-
def setup_page()
|
11 |
with st.spinner("In progress..."):
|
12 |
hf_token = os.getenv('HF_TOKEN')
|
13 |
df_chapters = pd.read_csv("SBS_V2_0/Chapter_Index_Rows_with_total.csv")
|
|
|
7 |
return 'cuda' if torch.cuda.is_available() else 'cpu'
|
8 |
device = get_device_map() # 'cpu'
|
9 |
|
10 |
+
def setup_page():
|
11 |
with st.spinner("In progress..."):
|
12 |
hf_token = os.getenv('HF_TOKEN')
|
13 |
df_chapters = pd.read_csv("SBS_V2_0/Chapter_Index_Rows_with_total.csv")
|