Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,24 @@ model = CustomModel()
|
|
8 |
|
9 |
model_training = Custom_VIT_Model()
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Variable to store the last prediction result
|
12 |
last_prediction = None
|
13 |
|
@@ -60,22 +78,7 @@ with gr.Blocks(css=custom_css,theme=gr.themes.Soft()) as demo:
|
|
60 |
|
61 |
clear_btn.click(clear_all, outputs=[image_input, prediction_output, confidence_output, feedback_output])
|
62 |
|
63 |
-
|
64 |
-
<style>
|
65 |
-
#submit_btn {
|
66 |
-
background-color: #4CAF50; /* Green */
|
67 |
-
color: white;
|
68 |
-
}
|
69 |
-
#feedback_btn {
|
70 |
-
background-color: #f44336; /* Red */
|
71 |
-
color: white;
|
72 |
-
}
|
73 |
-
#clear_btn {
|
74 |
-
background-color: #2196F3; /* Blue */
|
75 |
-
color: white;
|
76 |
-
}
|
77 |
-
</style>
|
78 |
-
"""
|
79 |
|
80 |
|
81 |
# Launch the Gradio interface
|
|
|
8 |
|
9 |
model_training = Custom_VIT_Model()
|
10 |
|
11 |
+
|
12 |
+
custom_css = """
|
13 |
+
<style>
|
14 |
+
#submit_btn {
|
15 |
+
background-color: #4CAF50; /* Green */
|
16 |
+
color: white;
|
17 |
+
}
|
18 |
+
#feedback_btn {
|
19 |
+
background-color: #f44336; /* Red */
|
20 |
+
color: white;
|
21 |
+
}
|
22 |
+
#clear_btn {
|
23 |
+
background-color: #2196F3; /* Blue */
|
24 |
+
color: white;
|
25 |
+
}
|
26 |
+
</style>
|
27 |
+
"""
|
28 |
+
|
29 |
# Variable to store the last prediction result
|
30 |
last_prediction = None
|
31 |
|
|
|
78 |
|
79 |
clear_btn.click(clear_all, outputs=[image_input, prediction_output, confidence_output, feedback_output])
|
80 |
|
81 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
|
84 |
# Launch the Gradio interface
|