concauu commited on
Commit
09eb4d3
·
verified ·
1 Parent(s): 56914b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from groq import Groq # Import the Groq library
6
  from cryptography.fernet import Fernet
7
  from huggingface_hub import login
8
  from transformers import CLIPTokenizer
 
 
9
  def get_hf_token(encrypted_token):
10
  # Retrieve the decryption key from an environment variable
11
  key = "K4FlQbffvTcDxT2FIhrOPV1eue6ia45FFR3kqp2hHbM="
 
6
  from cryptography.fernet import Fernet
7
  from huggingface_hub import login
8
  from transformers import CLIPTokenizer
9
+ import os
10
+ os.environ['HF_HUB_DOWNLOAD_TIMEOUT'] = '120'
11
  def get_hf_token(encrypted_token):
12
  # Retrieve the decryption key from an environment variable
13
  key = "K4FlQbffvTcDxT2FIhrOPV1eue6ia45FFR3kqp2hHbM="