Spaces:
Runtime error
Runtime error
Commit
·
d792f5e
1
Parent(s):
cae118d
use HF_TRANSFER
Browse files- app.py +3 -0
- requirements.txt +2 -1
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
|
|
4 |
|
5 |
MODEL_NAME = "NousResearch/Genstruct-7B"
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
+
import os
|
5 |
+
|
6 |
+
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
7 |
|
8 |
MODEL_NAME = "NousResearch/Genstruct-7B"
|
9 |
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
transformers
|
2 |
accelerate
|
3 |
spaces
|
4 |
-
gradio>=4.36.1
|
|
|
|
1 |
transformers
|
2 |
accelerate
|
3 |
spaces
|
4 |
+
gradio>=4.36.1
|
5 |
+
huggingface_hub[hf_transfer]
|