Commit
·
d82fe1b
1
Parent(s):
5ba85b9
:wrench: Small fix
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def load_file_from_response(response):
|
|
| 79 |
|
| 80 |
try:
|
| 81 |
if "application/json" in content_type:
|
| 82 |
-
if "No file path" in response.json()
|
| 83 |
return None
|
| 84 |
return {"type": "json", "data": response.json()}
|
| 85 |
|
|
|
|
| 79 |
|
| 80 |
try:
|
| 81 |
if "application/json" in content_type:
|
| 82 |
+
if "No file path" in response.json()["detail"]:
|
| 83 |
return None
|
| 84 |
return {"type": "json", "data": response.json()}
|
| 85 |
|