Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
from huggingface_hub import hf_hub_download , snapshot_download
|
| 2 |
import pandas as pd
|
| 3 |
import importlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# snapshot_downloading your private space
|
| 5 |
snapshot_download(
|
| 6 |
repo_id="wintergw/assignment_opt_gurobi",
|
|
@@ -14,6 +21,7 @@ filename="app.py",
|
|
| 14 |
repo_type="space"
|
| 15 |
)
|
| 16 |
# executing the app file
|
| 17 |
-
spec_app = importlib.util.spec_from_file_location("*",
|
| 18 |
app = importlib.util.module_from_spec(spec_app)
|
| 19 |
-
spec_app.loader.exec_module(app)
|
|
|
|
|
|
| 1 |
from huggingface_hub import hf_hub_download , snapshot_download
|
| 2 |
import pandas as pd
|
| 3 |
import importlib
|
| 4 |
+
import importlib.util
|
| 5 |
+
import streamlit as st
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
# snapshot_downloading your private space
|
| 12 |
snapshot_download(
|
| 13 |
repo_id="wintergw/assignment_opt_gurobi",
|
|
|
|
| 21 |
repo_type="space"
|
| 22 |
)
|
| 23 |
# executing the app file
|
| 24 |
+
spec_app = importlib.util.spec_from_file_location("*",app)
|
| 25 |
app = importlib.util.module_from_spec(spec_app)
|
| 26 |
+
spec_app.loader.exec_module(app)
|
| 27 |
+
|