Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -218,7 +218,7 @@ class InferenceRunner(StateManager):
|
|
218 |
st.session_state.button_label = "Reload Model" if self.is_model_loaded and st.session_state.kbvqa.detection_model != st.session_state['detection_model'] else "Load Model"
|
219 |
|
220 |
with self.col1:
|
221 |
-
if st.session_state.method == "7b-Fine-Tuned Model":
|
222 |
with st.container():
|
223 |
nested_col11, nested_col12 = st.columns([0.5, 0.5])
|
224 |
if nested_col11.button(st.session_state.button_label, on_click=self.disable_widgets, disabled=self.is_widget_disabled):
|
@@ -259,8 +259,8 @@ class InferenceRunner(StateManager):
|
|
259 |
st.session_state['loading_in_progress'] = False
|
260 |
st.session_state['model_loaded'] = True
|
261 |
|
262 |
-
|
263 |
-
|
264 |
|
265 |
|
266 |
elif st.session_state.method == "Learning Visual Embeddings":
|
|
|
218 |
st.session_state.button_label = "Reload Model" if self.is_model_loaded and st.session_state.kbvqa.detection_model != st.session_state['detection_model'] else "Load Model"
|
219 |
|
220 |
with self.col1:
|
221 |
+
if st.session_state.method == "7b-Fine-Tuned Model" or st.session_state.method == "13b-Fine-Tuned Model":
|
222 |
with st.container():
|
223 |
nested_col11, nested_col12 = st.columns([0.5, 0.5])
|
224 |
if nested_col11.button(st.session_state.button_label, on_click=self.disable_widgets, disabled=self.is_widget_disabled):
|
|
|
259 |
st.session_state['loading_in_progress'] = False
|
260 |
st.session_state['model_loaded'] = True
|
261 |
|
262 |
+
# elif st.session_state.method == "13b-Fine-Tuned Model":
|
263 |
+
# self.col1.warning(f'Model using {st.session_state.method} is not deployed yet, will be ready later.')
|
264 |
|
265 |
|
266 |
elif st.session_state.method == "Learning Visual Embeddings":
|