codeGPT / app.py
red1xe's picture
deneme
7a89821
raw
history blame
474 Bytes
import streamlit as st
from langchain.embeddings import HuggingFaceEmbeddings
from langchain.vectorstores import FAISS
from pdfminer.high_level import extract_text
st.title("Embedding Creation for Langchain")
st.header("File Upload")
files = st.file_uploader("Upload your files", accept_multiple_files=True, type="pdf")
if files:
st.header("PDFs to Text")
if st.button("Convert"):
for file in files:
text = extract_text(file)
st.write(text)