Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +4 -4
src/app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import os,types,requests
|
3 |
-
from huggingface_hub import login
|
4 |
|
5 |
# Retrieve your hidden script from the environment variable
|
6 |
app_url = os.environ.get("APP_URL", "")
|
@@ -29,9 +29,9 @@ def execute_remote_script(url: str): # code_str: str
|
|
29 |
|
30 |
# Execute the code string in the new namespace
|
31 |
exec(code_string, dynamic_module.__dict__)
|
32 |
-
module = types.ModuleType("dynamic_app")
|
33 |
-
if hasattr(module,"main"):
|
34 |
-
|
35 |
|
36 |
except requests.exceptions.RequestException as e:
|
37 |
st.error(f"Error downloading the script: {e}")
|
|
|
1 |
import streamlit as st
|
2 |
import os,types,requests
|
3 |
+
# from huggingface_hub import login
|
4 |
|
5 |
# Retrieve your hidden script from the environment variable
|
6 |
app_url = os.environ.get("APP_URL", "")
|
|
|
29 |
|
30 |
# Execute the code string in the new namespace
|
31 |
exec(code_string, dynamic_module.__dict__)
|
32 |
+
# module = types.ModuleType("dynamic_app")
|
33 |
+
# if hasattr(module,"main"):
|
34 |
+
# module.main()
|
35 |
|
36 |
except requests.exceptions.RequestException as e:
|
37 |
st.error(f"Error downloading the script: {e}")
|