Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ My favorite part of the book though was when the hobbits met Tom Bombadil, it's
|
|
44 |
data=input_data,
|
45 |
headers=headers).json()
|
46 |
|
47 |
-
if 0 not in r:
|
48 |
st.write(r)
|
49 |
-
|
50 |
else:
|
51 |
r=r[0]
|
52 |
|
|
|
44 |
data=input_data,
|
45 |
headers=headers).json()
|
46 |
|
47 |
+
if 0 not in r.keys():
|
48 |
st.write(r)
|
49 |
+
continue
|
50 |
else:
|
51 |
r=r[0]
|
52 |
|