Spaces:
Build error
Build error
fcernafukuzaki
commited on
Commit
•
aa743d5
1
Parent(s):
54de5cd
Update app.py
Browse files
app.py
CHANGED
@@ -71,12 +71,15 @@ class YOLODetect():
|
|
71 |
"size": str(img_size),
|
72 |
"detail": self.json_result
|
73 |
}
|
|
|
74 |
|
75 |
# Convertir el diccionario a una cadena JSON
|
76 |
self.json_result = json.dumps(result_dict)
|
|
|
77 |
|
78 |
# Convertir la cadena JSON a un objeto Python (diccionario)
|
79 |
self.json_result = json.loads(self.json_result)
|
|
|
80 |
|
81 |
return self.json_result
|
82 |
|
|
|
71 |
"size": str(img_size),
|
72 |
"detail": self.json_result
|
73 |
}
|
74 |
+
print(f"{type(result_dict)} - {result_dict}")
|
75 |
|
76 |
# Convertir el diccionario a una cadena JSON
|
77 |
self.json_result = json.dumps(result_dict)
|
78 |
+
print(f"{type(self.json_result)} - {self.json_result}")
|
79 |
|
80 |
# Convertir la cadena JSON a un objeto Python (diccionario)
|
81 |
self.json_result = json.loads(self.json_result)
|
82 |
+
print(f"{type(self.json_result)} - {self.json_result}")
|
83 |
|
84 |
return self.json_result
|
85 |
|