SoDehghan commited on
Commit
6a5c9a2
·
verified ·
1 Parent(s): 6c1822d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -27,6 +27,20 @@ st.sidebar.title("Navigation")
27
  selection = st.sidebar.radio("Pages", list(PAGES.keys()))
28
 
29
  page = PAGES[selection]
 
30
  ast.shared.components.write_page(page)
31
 
32
- #st.sidebar.header("Info")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  selection = st.sidebar.radio("Pages", list(PAGES.keys()))
28
 
29
  page = PAGES[selection]
30
+ # with st.spinner(f"Loading {selection} ..."):
31
  ast.shared.components.write_page(page)
32
 
33
+ st.sidebar.header("Info")
34
+ st.sidebar.write("Made by [Wissam Antoun](https://twitter.com/wissam_antoun)")
35
+ st.sidebar.write(
36
+ "Pre-trained models are available on [HF Hub](https://huggingface.co/aubmindlab)"
37
+ )
38
+ st.sidebar.write(
39
+ "Models source code available on [GitHub](https://github.com/aub-mind/arabert)"
40
+ )
41
+ st.sidebar.write(
42
+ "App source code available on [GitHub](https://github.com/WissamAntoun/Arabic-NLP-app)"
43
+ )
44
+ if st.sidebar.checkbox("Show RAM usage"):
45
+ ram = get_current_ram_usage()
46
+ st.sidebar.write("Ram usage: {:.2f}/{:.2f} GB".format(ram[0], ram[1]))