AnnaRPT commited on
Commit
6b33e15
·
verified ·
1 Parent(s): 2cc087d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -1,17 +1,11 @@
1
  import gradio as gr
2
  import os
3
 
4
- # Ensure the token is retrieved from the environment variable
5
  hf_token = os.environ.get('APP_ACCESS_KEY')
6
  env_username = os.environ.get('APP_USERNAME')
7
  env_password = os.environ.get('APP_PASSWORD')
8
 
9
- print("env user:", env_username)
10
- print("env pass:", env_password)
11
- # Print the token to confirm it's being retrieved (optional, remove in production)
12
- print(f"Hugging Face token: {hf_token}")
13
-
14
- # Load the space using Gradio's load function
15
  iface = gr.load(name="AnnaRPT/Heroes-LLM", hf_token=hf_token, src="spaces")
16
 
17
  # Queue the interface and launch the application
 
1
  import gradio as gr
2
  import os
3
 
 
4
  hf_token = os.environ.get('APP_ACCESS_KEY')
5
  env_username = os.environ.get('APP_USERNAME')
6
  env_password = os.environ.get('APP_PASSWORD')
7
 
8
+ # Load the space
 
 
 
 
 
9
  iface = gr.load(name="AnnaRPT/Heroes-LLM", hf_token=hf_token, src="spaces")
10
 
11
  # Queue the interface and launch the application