Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|