Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -20,11 +20,11 @@ import time
|
|
| 20 |
import sys
|
| 21 |
import torch
|
| 22 |
import pandas as pd
|
| 23 |
-
|
| 24 |
custom_streamlit_config = os.path.join("/tmp", ".streamlit")
|
| 25 |
os.makedirs(custom_streamlit_config, exist_ok=True)
|
| 26 |
os.environ["STREAMLIT_HOME"] = custom_streamlit_config
|
| 27 |
-
|
| 28 |
|
| 29 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 30 |
|
|
|
|
| 20 |
import sys
|
| 21 |
import torch
|
| 22 |
import pandas as pd
|
| 23 |
+
import streamlit as st
|
| 24 |
custom_streamlit_config = os.path.join("/tmp", ".streamlit")
|
| 25 |
os.makedirs(custom_streamlit_config, exist_ok=True)
|
| 26 |
os.environ["STREAMLIT_HOME"] = custom_streamlit_config
|
| 27 |
+
|
| 28 |
|
| 29 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 30 |
|