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 = 'klyang/MentaLLaMA-chat-7B'
|
|
|
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 |
+
|
11 |
+
HF_TOKEN = os.getenv('mentalhealth_llama_chat')
|
12 |
+
login(HF_TOKEN)
|
13 |
|
14 |
# Model name in Hugging Face docs
|
15 |
model = 'klyang/MentaLLaMA-chat-7B'
|