myyim commited on
Commit
044f4b1
·
verified ·
1 Parent(s): 8ee3daa

Update src/app.py

Browse files
Files changed (1) hide show
  1. 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
- module.main()
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}")