Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,14 @@
|
|
2 |
import gradio as gr
|
3 |
import transformers
|
4 |
import torch
|
|
|
5 |
from transformers import pipeline, AutoTokenizer
|
6 |
|
7 |
from huggingface_hub import login
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
11 |
# Model name in Hugging Face docs
|
12 |
model = "meta-llama/Llama-2-7b-chat-hf"
|
|
|
2 |
import gradio as gr
|
3 |
import transformers
|
4 |
import torch
|
5 |
+
import os
|
6 |
from transformers import pipeline, AutoTokenizer
|
7 |
|
8 |
from huggingface_hub import login
|
9 |
|
10 |
+
HF_TOKEN = os.getenv('llama_chat')
|
11 |
+
login(HF_TOKEN)
|
12 |
+
|
13 |
|
14 |
# Model name in Hugging Face docs
|
15 |
model = "meta-llama/Llama-2-7b-chat-hf"
|