georad commited on
Commit
0920762
·
verified ·
1 Parent(s): 9edfd2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -37,23 +37,14 @@ PAGES = {
37
  "About": "pages/about.py",
38
  }
39
 
40
- #PAGES = {
41
- # "Home": backend.home,
42
- # "Arabic Text Preprocessor": backend.processor,
43
- # "Arabic Language Generation": backend.aragpt,
44
- # "Arabic Sentiment Analysis": backend.sa,
45
- # # "Arabic Sarcasm Detection": backend.sarcasm,
46
- # "Arabic Question Answering": backend.qa,
47
- #}
48
-
49
  #selection = st.sidebar.radio("Pages", list(PAGES.keys()))
50
- selection = st.sidebar.radio("Pages", [home_page, type_text_page, upload_file_page, about_page])
51
- page = PAGES[selection]
52
 
53
  # --- NAVIGATION SETUP ---
54
- #pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
55
  #pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
56
 
57
  st.sidebar.text("Project by JA-RAD")
58
 
59
- #pg.run()
 
37
  "About": "pages/about.py",
38
  }
39
 
 
 
 
 
 
 
 
 
 
40
  #selection = st.sidebar.radio("Pages", list(PAGES.keys()))
41
+ #selection = st.sidebar.radio("Pages", [home_page, type_text_page, upload_file_page, about_page])
42
+ #page = PAGES[selection]
43
 
44
  # --- NAVIGATION SETUP ---
45
+ pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
46
  #pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
47
 
48
  st.sidebar.text("Project by JA-RAD")
49
 
50
+ pg.run()