-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.py
34 lines (31 loc) · 1.13 KB
/
init.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import streamlit as st
import numpy as np
import pandas as pd
from numpy.lib.shape_base import expand_dims
from libs.functionality import *
from libs.about_us import *
from libs.introduction import *
def start():
st.title("Learning to See in Dark Implementation")
app_mode = st.sidebar.selectbox(
"Choose the app mode", ["Show instructions", "Run the app", "Source code"]
)
if st.sidebar.button(label="show contributors"):
func()
else:
if app_mode == "Show instructions":
show_introduction()
st.sidebar.success('To continue select "Run the app".')
elif app_mode == "Source code":
t1 = st.title("Code:")
m1 = st.markdown(
"## [github link](https://github.com/someshfengde/learning_to_see_in_dark)"
)
code1 = st.code(get_file_content_as_string("app.py"))
title_1 = st.title("Functionality")
code2 = st.code(get_file_content_as_string("functionality.py"))
elif app_mode == 'Run the app':
# st.balloons()
run_the_app()
if __name__ == "__main__":
start()