Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -98,9 +98,11 @@ def run_inference():
|
|
98 |
st.title("Run Inference")
|
99 |
state_manager.initialize_state()
|
100 |
state_manager.set_up_widgets()
|
|
|
101 |
# state_manager.display_session_state()
|
102 |
state_manager.display_model_settings()
|
103 |
-
|
|
|
104 |
if st.session_state.method == "Fine-Tuned Model":
|
105 |
if st.button(button_label):
|
106 |
if button_label == "Load Model":
|
|
|
98 |
st.title("Run Inference")
|
99 |
state_manager.initialize_state()
|
100 |
state_manager.set_up_widgets()
|
101 |
+
st.session_state.button_label = "Reload Model" if state_manager.is_model_loaded() and state_manager.has_state_changed() else "Load Model"
|
102 |
# state_manager.display_session_state()
|
103 |
state_manager.display_model_settings()
|
104 |
+
|
105 |
+
|
106 |
if st.session_state.method == "Fine-Tuned Model":
|
107 |
if st.button(button_label):
|
108 |
if button_label == "Load Model":
|