Spaces:
Sleeping
Sleeping
abhishekrs4
commited on
Commit
•
d973687
1
Parent(s):
dc6151f
updated frontend app script
Browse files- frontend.py +4 -4
frontend.py
CHANGED
@@ -8,7 +8,7 @@ import streamlit as st
|
|
8 |
from PIL import Image
|
9 |
from skimage.io import imread
|
10 |
|
11 |
-
def infer():
|
12 |
st.title("Overhead MNIST classification app")
|
13 |
|
14 |
# select an input image file
|
@@ -42,7 +42,7 @@ def infer():
|
|
42 |
st.write(response.json())
|
43 |
return
|
44 |
|
45 |
-
def app_info():
|
46 |
st.title("App info")
|
47 |
st.markdown("_Task - Overhead MNIST classification_")
|
48 |
st.markdown("_Project repo - [https://github.com/AbhishekRS4/overhead_mnist](https://github.com/AbhishekRS4/overhead_mnist)_")
|
@@ -59,12 +59,12 @@ app_modes = {
|
|
59 |
"Overhead MNIST Inference App": infer,
|
60 |
}
|
61 |
|
62 |
-
def start_app():
|
63 |
selected_mode = st.sidebar.selectbox("Select mode", list(app_modes.keys()))
|
64 |
app_modes[selected_mode]()
|
65 |
return
|
66 |
|
67 |
-
def main():
|
68 |
start_app()
|
69 |
return
|
70 |
|
|
|
8 |
from PIL import Image
|
9 |
from skimage.io import imread
|
10 |
|
11 |
+
def infer() -> None:
|
12 |
st.title("Overhead MNIST classification app")
|
13 |
|
14 |
# select an input image file
|
|
|
42 |
st.write(response.json())
|
43 |
return
|
44 |
|
45 |
+
def app_info() -> None:
|
46 |
st.title("App info")
|
47 |
st.markdown("_Task - Overhead MNIST classification_")
|
48 |
st.markdown("_Project repo - [https://github.com/AbhishekRS4/overhead_mnist](https://github.com/AbhishekRS4/overhead_mnist)_")
|
|
|
59 |
"Overhead MNIST Inference App": infer,
|
60 |
}
|
61 |
|
62 |
+
def start_app() -> None:
|
63 |
selected_mode = st.sidebar.selectbox("Select mode", list(app_modes.keys()))
|
64 |
app_modes[selected_mode]()
|
65 |
return
|
66 |
|
67 |
+
def main() -> None:
|
68 |
start_app()
|
69 |
return
|
70 |
|