tmartinez commited on
Commit
775cd45
1 Parent(s): 8bec55c

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 = "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"