Spaces:
Sleeping
Sleeping
Update my_model/state_manager.py
Browse files
my_model/state_manager.py
CHANGED
|
@@ -96,7 +96,7 @@ class StateManager:
|
|
| 96 |
"""
|
| 97 |
return self.has_state_changed()
|
| 98 |
|
| 99 |
-
|
| 100 |
def display_model_settings(self):
|
| 101 |
"""
|
| 102 |
Displays a table of current model settings in the third column.
|
|
@@ -323,7 +323,7 @@ class StateManager:
|
|
| 323 |
'analysis_done': analysis_done
|
| 324 |
})
|
| 325 |
|
| 326 |
-
|
| 327 |
def resize_image(self, image_input, new_width=None, new_height=None):
|
| 328 |
"""
|
| 329 |
Resize an image. If only new_width is provided, the height is adjusted to maintain aspect ratio.
|
|
@@ -366,7 +366,7 @@ class StateManager:
|
|
| 366 |
return resized_image
|
| 367 |
|
| 368 |
|
| 369 |
-
|
| 370 |
def display_message(self, message, message_type):
|
| 371 |
if message_type == "warning":
|
| 372 |
st.warning(message)
|
|
|
|
| 96 |
"""
|
| 97 |
return self.has_state_changed()
|
| 98 |
|
| 99 |
+
|
| 100 |
def display_model_settings(self):
|
| 101 |
"""
|
| 102 |
Displays a table of current model settings in the third column.
|
|
|
|
| 323 |
'analysis_done': analysis_done
|
| 324 |
})
|
| 325 |
|
| 326 |
+
|
| 327 |
def resize_image(self, image_input, new_width=None, new_height=None):
|
| 328 |
"""
|
| 329 |
Resize an image. If only new_width is provided, the height is adjusted to maintain aspect ratio.
|
|
|
|
| 366 |
return resized_image
|
| 367 |
|
| 368 |
|
| 369 |
+
|
| 370 |
def display_message(self, message, message_type):
|
| 371 |
if message_type == "warning":
|
| 372 |
st.warning(message)
|