BhumikaMak commited on
Commit
09b4bbd
·
verified ·
1 Parent(s): 9f08712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -82,7 +82,7 @@ with gr.Blocks(css=custom_css) as interface:
82
  gr.Markdown(
83
  """
84
  # NeuralVista
85
- ## Welcome to NeuralVista, a powerful tool designed to help you visualize object detection models in action. With the integration of state-of-the-art YOLO models, you can explore the performance of object detection algorithms on various images.
86
 
87
  Whether you're looking to analyze pre-existing samples or upload your own images,
88
  NeuralVista allows you to experiment with different YOLO versions, providing you with valuable
@@ -175,8 +175,14 @@ all within an intuitive interface."""
175
  t1.join()
176
  t2.join()
177
  image1, text, image2 = results[0]
178
- print('results', results)
179
- print('image2', image2)
 
 
 
 
 
 
180
  return [(image1, text)], netron_html, [image2]
181
 
182
  # Run button click
 
82
  gr.Markdown(
83
  """
84
  # NeuralVista
85
+ Welcome to NeuralVista, a powerful tool designed to help you visualize object detection models in action. With the integration of state-of-the-art YOLO models, you can explore the performance of object detection algorithms on various images.
86
 
87
  Whether you're looking to analyze pre-existing samples or upload your own images,
88
  NeuralVista allows you to experiment with different YOLO versions, providing you with valuable
 
175
  t1.join()
176
  t2.join()
177
  image1, text, image2 = results[0]
178
+ if isinstance(image2, list):
179
+ # Check if image2 contains exactly 8 images
180
+ if len(image2) == 8:
181
+ print("image2 contains 8 images.")
182
+ else:
183
+ print("Warning: image2 does not contain exactly 8 images.")
184
+ else:
185
+ print("Error: image2 is not a list of images.")
186
  return [(image1, text)], netron_html, [image2]
187
 
188
  # Run button click