Spaces:
Sleeping
Sleeping
Niklauseik
commited on
Commit
·
e404834
1
Parent(s):
cd6d585
token added
Browse files- Dockerfile +4 -0
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -10,6 +10,10 @@ COPY requirements.txt .
|
|
| 10 |
# Install any dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Copy the rest of the application code
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
| 10 |
# Install any dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Set environment variable for Hugging Face token
|
| 14 |
+
ENV HUGGINGFACE_TOKEN=<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>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY . .
|
| 19 |
|
app.py
CHANGED
|
@@ -11,7 +11,7 @@ MODELS = {
|
|
| 11 |
"DistilBERT": "distilbert-base-uncased",
|
| 12 |
"BERT": "bert-base-uncased",
|
| 13 |
"RoBERTa": "roberta-base",
|
| 14 |
-
"LLaMA2_13B_chat": "
|
| 15 |
"LLaMA2_70B": "meta-llama/Llama-2-70b-hf",
|
| 16 |
"ChatGLM3_6B": "THUDM/chatglm-6b",
|
| 17 |
"InternLM_7B": "internlm/internlm-7b",
|
|
|
|
| 11 |
"DistilBERT": "distilbert-base-uncased",
|
| 12 |
"BERT": "bert-base-uncased",
|
| 13 |
"RoBERTa": "roberta-base",
|
| 14 |
+
"LLaMA2_13B_chat": "Llama-2-13b-chat-hf",
|
| 15 |
"LLaMA2_70B": "meta-llama/Llama-2-70b-hf",
|
| 16 |
"ChatGLM3_6B": "THUDM/chatglm-6b",
|
| 17 |
"InternLM_7B": "internlm/internlm-7b",
|