Beltran Fiz commited on
Commit
de8975b
·
1 Parent(s): e6e781d

token var change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,5 +5,5 @@ read_key = os.environ.get('HF_TOKEN', None)
5
  if read_key is None:
6
  raise ValueError("HF_TOKEN environment variable not set. Please set it to your Hugging Face API token.")
7
  with gr.Blocks() as demo:
8
- gr.load("bbfizp/LBRCS", hf_token=read_key, src="spaces")
9
  demo.launch(share=True)
 
5
  if read_key is None:
6
  raise ValueError("HF_TOKEN environment variable not set. Please set it to your Hugging Face API token.")
7
  with gr.Blocks() as demo:
8
+ gr.load("bbfizp/LBRCS", token=read_key, src="spaces")
9
  demo.launch(share=True)