Spaces:
Runtime error
Runtime error
update
Browse files- app.py +1 -1
- requirements.txt +2 -2
app.py
CHANGED
@@ -7,7 +7,7 @@ import spaces
|
|
7 |
huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
8 |
if not huggingface_token:
|
9 |
pass
|
10 |
-
|
11 |
|
12 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
13 |
model_id = "microsoft/Phi-3-mini-128k-instruct"
|
|
|
7 |
huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
8 |
if not huggingface_token:
|
9 |
pass
|
10 |
+
raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
|
11 |
|
12 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
13 |
model_id = "microsoft/Phi-3-mini-128k-instruct"
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
numpy
|
2 |
torch
|
3 |
-
spaces
|
4 |
accelerate
|
5 |
bitsandbytes
|
6 |
-
transformers
|
|
|
|
1 |
numpy
|
2 |
torch
|
|
|
3 |
accelerate
|
4 |
bitsandbytes
|
5 |
+
transformers
|
6 |
+
spaces
|