Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -36,7 +36,7 @@ class InferenceRunner(StateManager):
|
|
36 |
with cols[idx]:
|
37 |
image = Image.open(sample_image_path)
|
38 |
image_for_display = copy.deepcopy(image) # resize just for the display control without changing original image
|
39 |
-
image_for_display = self.resize_image(image_for_display,
|
40 |
st.image(image_for_display)
|
41 |
if st.button(f'Select Sample Image {idx + 1}', key=f'sample_{idx}'):
|
42 |
self.process_new_image(sample_image_path, image, kbvqa)
|
|
|
36 |
with cols[idx]:
|
37 |
image = Image.open(sample_image_path)
|
38 |
image_for_display = copy.deepcopy(image) # resize just for the display control without changing original image
|
39 |
+
image_for_display = self.resize_image(image_for_display, 500, 500)
|
40 |
st.image(image_for_display)
|
41 |
if st.button(f'Select Sample Image {idx + 1}', key=f'sample_{idx}'):
|
42 |
self.process_new_image(sample_image_path, image, kbvqa)
|