TroglodyteDerivations
commited on
Added lines 5 & 6
Browse filesfrom getpass import getpass
HUGGINGFACE_API_TOKEN = getpass()
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
|
|
|
|
|
|
4 |
os.environ["HUGGINGFACE_HUB_API_TOKEN"] = HUGGINGFACE_HUB_API_TOKEN
|
5 |
|
|
|
6 |
from langchain_community.document_loaders import PyPDFLoader
|
7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
8 |
from langchain_community.vectorstores import Chroma
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
+
from getpass import getpass
|
5 |
+
HUGGINGFACE_API_TOKEN = getpass()
|
6 |
+
|
7 |
os.environ["HUGGINGFACE_HUB_API_TOKEN"] = HUGGINGFACE_HUB_API_TOKEN
|
8 |
|
9 |
+
|
10 |
from langchain_community.document_loaders import PyPDFLoader
|
11 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
12 |
from langchain_community.vectorstores import Chroma
|