Spaces:
Runtime error
Runtime error
Eleonora Bernasconi commited on
Commit ·
a256fa2
1
Parent(s): bd2c1ff
title
Browse files- __pycache__/analysis.cpython-37.pyc +0 -0
- __pycache__/intro.cpython-37.pyc +0 -0
- __pycache__/utils.cpython-37.pyc +0 -0
- app.py +9 -2
- frontend.css +31 -0
- intro.py +0 -2
- utils.py +8 -0
__pycache__/analysis.cpython-37.pyc
CHANGED
|
Binary files a/__pycache__/analysis.cpython-37.pyc and b/__pycache__/analysis.cpython-37.pyc differ
|
|
|
__pycache__/intro.cpython-37.pyc
CHANGED
|
Binary files a/__pycache__/intro.cpython-37.pyc and b/__pycache__/intro.cpython-37.pyc differ
|
|
|
__pycache__/utils.cpython-37.pyc
ADDED
|
Binary file (521 Bytes). View file
|
|
|
app.py
CHANGED
|
@@ -3,7 +3,8 @@ import intro
|
|
| 3 |
import knowledge_extraction
|
| 4 |
import analysis
|
| 5 |
import merge
|
| 6 |
-
|
|
|
|
| 7 |
st.set_page_config(
|
| 8 |
page_title="IRCDL Conference",
|
| 9 |
page_icon="📖",
|
|
@@ -15,6 +16,7 @@ st.set_page_config(
|
|
| 15 |
'About': "# IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research"
|
| 16 |
}
|
| 17 |
)
|
|
|
|
| 18 |
|
| 19 |
page_names_to_funcs = {
|
| 20 |
"Welcome": intro.intro,
|
|
@@ -25,4 +27,9 @@ page_names_to_funcs = {
|
|
| 25 |
|
| 26 |
demo_name = st.sidebar.selectbox("IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research", page_names_to_funcs.keys())
|
| 27 |
|
| 28 |
-
page_names_to_funcs[demo_name]()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import knowledge_extraction
|
| 4 |
import analysis
|
| 5 |
import merge
|
| 6 |
+
import utils as utl
|
| 7 |
+
|
| 8 |
st.set_page_config(
|
| 9 |
page_title="IRCDL Conference",
|
| 10 |
page_icon="📖",
|
|
|
|
| 16 |
'About': "# IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research"
|
| 17 |
}
|
| 18 |
)
|
| 19 |
+
st.markdown(f'<div class="header"><h1>IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research</h1></div>', unsafe_allow_html=True)
|
| 20 |
|
| 21 |
page_names_to_funcs = {
|
| 22 |
"Welcome": intro.intro,
|
|
|
|
| 27 |
|
| 28 |
demo_name = st.sidebar.selectbox("IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research", page_names_to_funcs.keys())
|
| 29 |
|
| 30 |
+
page_names_to_funcs[demo_name]()
|
| 31 |
+
|
| 32 |
+
# Loading CSS
|
| 33 |
+
utl.local_css("frontend.css")
|
| 34 |
+
utl.remote_css('https://fonts.googleapis.com/icon?family=Material+Icons')
|
| 35 |
+
utl.remote_css('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700&display=swap')
|
frontend.css
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
.header {
|
| 4 |
+
background: rgb(16, 125, 230);
|
| 5 |
+
background: linear-gradient(45deg, rgba(16, 125, 230, 1) 20%, rgba(36, 176, 219, 1) 100%);
|
| 6 |
+
text-align: center;
|
| 7 |
+
padding: 4rem 0 1rem;
|
| 8 |
+
margin: 0 0 1rem;
|
| 9 |
+
color: #FFF;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
.header figure {
|
| 13 |
+
display: block;
|
| 14 |
+
margin: 0 0 2rem;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.header h1,
|
| 18 |
+
.header h1 span,
|
| 19 |
+
.header h3,
|
| 20 |
+
.header h3 span {
|
| 21 |
+
color: #FFF;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.header h3 span {
|
| 25 |
+
max-width: 500px;
|
| 26 |
+
margin: auto;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
footer {
|
| 30 |
+
visibility: hidden;
|
| 31 |
+
}
|
intro.py
CHANGED
|
@@ -2,8 +2,6 @@ import streamlit as st
|
|
| 2 |
|
| 3 |
def intro():
|
| 4 |
import streamlit as st
|
| 5 |
-
|
| 6 |
-
st.write("# IRCDL Conference: A Two-Decade Bibliometric Journey Through Digital Libraries Research")
|
| 7 |
st.sidebar.success("Select a phase")
|
| 8 |
|
| 9 |
st.markdown(
|
|
|
|
| 2 |
|
| 3 |
def intro():
|
| 4 |
import streamlit as st
|
|
|
|
|
|
|
| 5 |
st.sidebar.success("Select a phase")
|
| 6 |
|
| 7 |
st.markdown(
|
utils.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def local_css(file_name):
|
| 4 |
+
with open(file_name) as f:
|
| 5 |
+
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
|
| 6 |
+
|
| 7 |
+
def remote_css(url):
|
| 8 |
+
st.markdown(f'<link href="{url}" rel="stylesheet">', unsafe_allow_html=True)
|