Spaces:
Build error
Build error
no message
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ MAX_N_LABELS = 5
|
|
| 16 |
SPLIT_TO_CLASSIFY = 'pasta'
|
| 17 |
COL1, COL2 = st.columns([3, 1])
|
| 18 |
CONTAINER_TOP = st.container()
|
| 19 |
-
CONTAINER_BODY = st.container(
|
| 20 |
|
| 21 |
|
| 22 |
|
|
@@ -77,9 +77,18 @@ def classify_full_dataset(shosen_dataset_name, chosen_model_name):
|
|
| 77 |
|
| 78 |
return image_count
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
def main():
|
| 81 |
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
# Restart or reset your app
|
|
@@ -87,6 +96,7 @@ def main():
|
|
| 87 |
# # Code to restart or reset your app goes here
|
| 88 |
# import subprocess
|
| 89 |
# subprocess.call(["shutdown", "-r", "-t", "0"])
|
|
|
|
| 90 |
with CONTAINER_BODY:
|
| 91 |
|
| 92 |
with COL1:
|
|
|
|
| 16 |
SPLIT_TO_CLASSIFY = 'pasta'
|
| 17 |
COL1, COL2 = st.columns([3, 1])
|
| 18 |
CONTAINER_TOP = st.container()
|
| 19 |
+
CONTAINER_BODY = st.container()
|
| 20 |
|
| 21 |
|
| 22 |
|
|
|
|
| 77 |
|
| 78 |
return image_count
|
| 79 |
|
| 80 |
+
def make_template():
|
| 81 |
+
#st.write("### FLAG 1")
|
| 82 |
+
#st.write("### FLAG 2")
|
| 83 |
+
pass
|
| 84 |
+
|
| 85 |
def main():
|
| 86 |
|
| 87 |
+
make_template()
|
| 88 |
+
|
| 89 |
+
with CONTAINER_TOP:
|
| 90 |
+
st.title("Bulk Image Classification DEMO")
|
| 91 |
+
#CONTAINER_TOP.title("Bulk Image Classification DEMO")
|
| 92 |
|
| 93 |
|
| 94 |
# Restart or reset your app
|
|
|
|
| 96 |
# # Code to restart or reset your app goes here
|
| 97 |
# import subprocess
|
| 98 |
# subprocess.call(["shutdown", "-r", "-t", "0"])
|
| 99 |
+
|
| 100 |
with CONTAINER_BODY:
|
| 101 |
|
| 102 |
with COL1:
|