tmartinez commited on
Commit
c0bdecb
1 Parent(s): 336ce3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- login('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')
 
 
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'