Spaces:
Runtime error
Runtime error
IronOneAILabs
commited on
Commit
•
7066326
1
Parent(s):
822b2e3
fix syntax - ds
Browse files
app.py
CHANGED
@@ -54,13 +54,13 @@ def fetch_text(url,api_key):
|
|
54 |
summary_text = json.loads(response.json())['description']
|
55 |
title_text = json.loads(response.json())['title']
|
56 |
|
57 |
-
|
58 |
maintext_text = ""
|
59 |
|
60 |
-
|
61 |
summary_text = ""
|
62 |
|
63 |
-
|
64 |
summary_text = ""
|
65 |
|
66 |
|
|
|
54 |
summary_text = json.loads(response.json())['description']
|
55 |
title_text = json.loads(response.json())['title']
|
56 |
|
57 |
+
if maintext_text is None:
|
58 |
maintext_text = ""
|
59 |
|
60 |
+
if summary_text is None:
|
61 |
summary_text = ""
|
62 |
|
63 |
+
if summary_text is None:
|
64 |
summary_text = ""
|
65 |
|
66 |
|