Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ import os, sys, json
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# access token with permission to access the model and PRO subscription
|
8 |
-
HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
|
9 |
OAI_API_KEY=os.getenv("OPENAI_API_KEY")
|
10 |
-
|
11 |
|
12 |
# tokenizer for generating prompt
|
13 |
print ("Tokenizer")
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# access token with permission to access the model and PRO subscription
|
8 |
+
#HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
|
9 |
OAI_API_KEY=os.getenv("OPENAI_API_KEY")
|
10 |
+
login(token=os.environ["HF_ACCESS_READ"])
|
11 |
|
12 |
# tokenizer for generating prompt
|
13 |
print ("Tokenizer")
|