giswqs commited on
Commit
68fd913
·
1 Parent(s): fa29f2b

Remove UTK logo

Browse files
Files changed (1) hide show
  1. streamlit_app.py +26 -17
streamlit_app.py CHANGED
@@ -1,25 +1,34 @@
1
  import scholarpy
2
  import streamlit as st
3
  from streamlit_option_menu import option_menu
4
- from apps import grant, home, google, journal, orcid, organization, publication, researcher
 
 
 
 
 
 
 
 
 
5
 
6
- st.set_page_config(page_title="Scholar Web App",
7
- page_icon="chart_with_upwards_trend",
8
- layout="wide")
9
 
10
  # A dictionary of apps in the format of {"App title": "App icon"}
11
  # More icons can be found here: https://icons.getbootstrap.com
12
 
13
- apps = {"home": {"title": "Home", "icon": "house"},
14
- "grant": {"title": "Grant", "icon": "coin"},
15
- "journal": {"title": "Journal", "icon": "journals"},
16
- "publication": {"title": "Publication", "icon": "journal"},
17
- "researcher": {"title": "Researcher", "icon": "person-circle"},
18
- "orcid": {"title": "ORCID", "icon": "person-square"},
19
- "organization": {"title": "Organization", "icon": "building"},
20
- "google": {"title": "Google Scholar", "icon": "google"},
21
-
22
- }
23
 
24
 
25
  titles = [app["title"] for app in apps.values()]
@@ -43,12 +52,12 @@ with st.sidebar:
43
  # st.sidebar.title("About")
44
  st.sidebar.info(
45
  """
46
- **Web App URL:**
47
- <https://scholar.gishub.org>
48
 
49
  """
50
  )
51
- st.image("https://i.imgur.com/2WhANKg.png")
52
 
53
  if "dsl" not in st.session_state:
54
  st.session_state["dsl"] = scholarpy.Dsl()
 
1
  import scholarpy
2
  import streamlit as st
3
  from streamlit_option_menu import option_menu
4
+ from apps import (
5
+ grant,
6
+ home,
7
+ google,
8
+ journal,
9
+ orcid,
10
+ organization,
11
+ publication,
12
+ researcher,
13
+ )
14
 
15
+ st.set_page_config(
16
+ page_title="Scholar Web App", page_icon="chart_with_upwards_trend", layout="wide"
17
+ )
18
 
19
  # A dictionary of apps in the format of {"App title": "App icon"}
20
  # More icons can be found here: https://icons.getbootstrap.com
21
 
22
+ apps = {
23
+ "home": {"title": "Home", "icon": "house"},
24
+ "grant": {"title": "Grant", "icon": "coin"},
25
+ "journal": {"title": "Journal", "icon": "journals"},
26
+ "publication": {"title": "Publication", "icon": "journal"},
27
+ "researcher": {"title": "Researcher", "icon": "person-circle"},
28
+ "orcid": {"title": "ORCID", "icon": "person-square"},
29
+ "organization": {"title": "Organization", "icon": "building"},
30
+ "google": {"title": "Google Scholar", "icon": "google"},
31
+ }
32
 
33
 
34
  titles = [app["title"] for app in apps.values()]
 
52
  # st.sidebar.title("About")
53
  st.sidebar.info(
54
  """
55
+ **URL:** <https://scholar.gishub.org>
56
+ **Contact:** [Qiusheng Wu](https://gishub.org)
57
 
58
  """
59
  )
60
+ # st.image("https://i.imgur.com/2WhANKg.png")
61
 
62
  if "dsl" not in st.session_state:
63
  st.session_state["dsl"] = scholarpy.Dsl()