Spaces:
Sleeping
Sleeping
Pavel Malov commited on
Commit ·
d2af509
1
Parent(s): 012be2a
Add simple template
Browse files
app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
st.set_page_config(layout="wide")
|
| 5 |
+
|
| 6 |
+
st.markdown("""
|
| 7 |
+
<style>
|
| 8 |
+
.big-font {
|
| 9 |
+
font-size:300px !important;
|
| 10 |
+
}
|
| 11 |
+
</style>
|
| 12 |
+
""", unsafe_allow_html=True)
|
| 13 |
+
|
| 14 |
+
st.title("ArxivTitlePicker")
|
| 15 |
+
st.write("This app helps define category of your scientific paper based on its name and abstract.")
|
| 16 |
+
name = st.text_input("Paste here name of your paper")
|
| 17 |
+
abstract = st.text_area("Paste here abstract of your paper")
|
| 18 |
+
|
| 19 |
+
if name != '':
|
| 20 |
+
st.text("Your paper:\nName: " + name + '.\nAbstract: ' + abstract)
|
| 21 |
+
|
| 22 |
+
if st.button("Start processing"):
|
| 23 |
+
if name == '':
|
| 24 |
+
st.write('<p style="font-family:sans-serif; color:Red; font-size: 21px;">Please, provide name of the paper!🙇♂️</p>', unsafe_allow_html=True)
|