updated
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import pickle
|
|
6 |
import requests
|
7 |
import base64
|
8 |
|
9 |
-
@st.cache_data
|
10 |
def read_model(url):
|
11 |
response = requests.get(url)
|
12 |
open("temp.pkl", "wb").write(response.content)
|
@@ -57,4 +57,37 @@ if st.sidebar.button("Download"):
|
|
57 |
st.markdown(href, unsafe_allow_html=True)
|
58 |
|
59 |
st.title("About")
|
60 |
-
st.subheader("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
import requests
|
7 |
import base64
|
8 |
|
9 |
+
@st.cache_data(ttl=3600)
|
10 |
def read_model(url):
|
11 |
response = requests.get(url)
|
12 |
open("temp.pkl", "wb").write(response.content)
|
|
|
57 |
st.markdown(href, unsafe_allow_html=True)
|
58 |
|
59 |
st.title("About")
|
60 |
+
st.subheader("")
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
#import module
|
65 |
+
import streamlit as st
|
66 |
+
from PIL import Image
|
67 |
+
|
68 |
+
#===config===
|
69 |
+
st.set_page_config(
|
70 |
+
page_title="ETDs",
|
71 |
+
layout="wide"
|
72 |
+
)
|
73 |
+
st.title('Tag ETDs')
|
74 |
+
|
75 |
+
#===page===
|
76 |
+
mt1, mt2, mt3 = st.tabs(["About", "Behind this app"])
|
77 |
+
|
78 |
+
with mt1:
|
79 |
+
st.header("🌌 Hello!")
|
80 |
+
st.write('You can tag your input CSV file of theses and dissertations with Library Science, Archival Studies, and Information Science categories. The screen will show the output.')
|
81 |
+
st.text('')
|
82 |
+
st.text('')
|
83 |
+
st.text('')
|
84 |
+
st.text('')
|
85 |
+
st.divider()
|
86 |
+
st.error("This app works on Scopus's CSV file, Web of Science's Tab delimited file, and custom CSV file.", icon="🚨")
|
87 |
+
|
88 |
+
with mt2:
|
89 |
+
st.header('Behind this app')
|
90 |
+
st.subheader('Dr. Manika Lamba')
|
91 |
+
st.text('Postdoctoral Research Associate, UIUC')
|
92 |
+
st.text('')
|
93 |
+
st.text('')
|