Spaces:
Running
Running
Start 'selected_image' at 0
Browse filesWas getting "AttributeError: 'NoneType' object has no attribute '_id'", let's see if this fixes it.
app.py
CHANGED
@@ -22,7 +22,7 @@ yolos_id = "hustvl/yolos-small-300"
|
|
22 |
yolos_processor: YolosImageProcessor = YolosImageProcessor.from_pretrained(yolos_id)
|
23 |
yolos_model: YolosForObjectDetection = YolosForObjectDetection.from_pretrained(yolos_id)
|
24 |
|
25 |
-
selected_image
|
26 |
|
27 |
|
28 |
def answer_question(img, prompt):
|
|
|
22 |
yolos_processor: YolosImageProcessor = YolosImageProcessor.from_pretrained(yolos_id)
|
23 |
yolos_model: YolosForObjectDetection = YolosForObjectDetection.from_pretrained(yolos_id)
|
24 |
|
25 |
+
selected_image = 0
|
26 |
|
27 |
|
28 |
def answer_question(img, prompt):
|