avalonai commited on
Commit
60b210b
·
verified ·
1 Parent(s): 08aebc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import gradio as gr
 
 
 
2
 
3
  if hf_token is None:
4
  raise ValueError("Hugging Face token not found. Please set the 'hf_token' environment variable.")
 
1
  import gradio as gr
2
+ import os
3
+
4
+ hf_token = os.getenv("hf_token")
5
 
6
  if hf_token is None:
7
  raise ValueError("Hugging Face token not found. Please set the 'hf_token' environment variable.")