PowerPointAI / app.py
sarim's picture
comment code
6368c40
raw
history blame
602 Bytes
import streamlit as st
from streamlit_pdf_viewer import pdf_viewer
import pdfplumber
import io
uploaded_files = st.file_uploader('Choose your .pdf file')
if uploaded_files is not None:
# To read file as bytes:
bytes_data = uploaded_files.read()
pdf_viewer(input=bytes_data)
pdf_content = io.BytesIO(bytes_data)
# with pdfplumber.open(pdf_content) as pdf_file:
# for page in pdf_file.pages:
# print(page.extract_text())
x = st.slider('Select a value')
url_1 = st.text_input(label="Enter research paper url",key="url_1")
st.write(x, 'squared is', x * x)