Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +2 -1
my_model/KBVQA.py
CHANGED
@@ -164,7 +164,7 @@ def prepare_kbvqa_model(only_reload_detection_model=False):
|
|
164 |
kbvqa = KBVQA()
|
165 |
kbvqa.detection_model = st.session_state.detection_model
|
166 |
# Progress bar for model loading
|
167 |
-
with st.spinner('Loading model... this should take no more than a few minutes
|
168 |
|
169 |
if not only_reload_detection_model:
|
170 |
progress_bar = st.progress(0)
|
@@ -173,6 +173,7 @@ def prepare_kbvqa_model(only_reload_detection_model=False):
|
|
173 |
kbvqa.load_caption_model()
|
174 |
free_gpu_resources()
|
175 |
progress_bar.progress(75)
|
|
|
176 |
kbvqa.load_fine_tuned_model()
|
177 |
free_gpu_resources()
|
178 |
progress_bar.progress(100)
|
|
|
164 |
kbvqa = KBVQA()
|
165 |
kbvqa.detection_model = st.session_state.detection_model
|
166 |
# Progress bar for model loading
|
167 |
+
with st.spinner('Loading model... this should take no more than a few minutes!'):
|
168 |
|
169 |
if not only_reload_detection_model:
|
170 |
progress_bar = st.progress(0)
|
|
|
173 |
kbvqa.load_caption_model()
|
174 |
free_gpu_resources()
|
175 |
progress_bar.progress(75)
|
176 |
+
st.text('Almost there :)')
|
177 |
kbvqa.load_fine_tuned_model()
|
178 |
free_gpu_resources()
|
179 |
progress_bar.progress(100)
|