Spaces:
Running
Running
File size: 602 Bytes
6756892 4a7b8ca 555d2a8 4232196 b476ae0 555d2a8 d66e9c7 555d2a8 4a7b8ca 4232196 6368c40 4232196 d66e9c7 6756892 b476ae0 6756892 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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)
|