TroglodyteDerivations
commited on
Updated lines 4, 5, 6
Browse files
app.py
CHANGED
@@ -2,9 +2,8 @@ import gradio as gr
|
|
2 |
import os
|
3 |
|
4 |
from getpass import getpass
|
5 |
-
|
6 |
-
|
7 |
-
os.environ["HUGGINGFACE_HUB_API_TOKEN"] = HUGGINGFACE_HUB_API_TOKEN
|
8 |
|
9 |
|
10 |
from langchain_community.document_loaders import PyPDFLoader
|
|
|
2 |
import os
|
3 |
|
4 |
from getpass import getpass
|
5 |
+
HUGGINGFACEHUB_API_TOKEN = getpass()
|
6 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = HUGGINGFACEHUB_API_TOKEN
|
|
|
7 |
|
8 |
|
9 |
from langchain_community.document_loaders import PyPDFLoader
|