Spaces:
Runtime error
Runtime error
read pdf
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import
|
| 3 |
|
| 4 |
|
| 5 |
-
def scrapWeb():
|
| 6 |
-
headers = {'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1'}
|
| 7 |
-
r = requests.get("https://sci-hub.se/https://www.nature.com/articles/s41551-021-00760-7",headers=headers).raise_for_status()
|
| 8 |
-
print(r)
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
x = st.slider('Select a value')
|
| 12 |
url_1 = st.text_input(label="Enter research paper url",key="url_1")
|
| 13 |
st.write(x, 'squared is', x * x)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from streamlit_pdf_reader import pdf_reader
|
| 3 |
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
|
| 7 |
+
|
| 8 |
+
if uploaded_file is not None:
|
| 9 |
+
print(uploaded_file.raw)
|
| 10 |
+
|
| 11 |
x = st.slider('Select a value')
|
| 12 |
url_1 = st.text_input(label="Enter research paper url",key="url_1")
|
| 13 |
st.write(x, 'squared is', x * x)
|