Spaces:
Runtime error
Runtime error
Commit
•
4500272
1
Parent(s):
94e1deb
update
Browse files
app.py
CHANGED
@@ -61,11 +61,17 @@ def inference(newssource): #, date):
|
|
61 |
print(f"urlToImage length is - {len(urlToImage)}")
|
62 |
print(f"sentiment length is - {len(sentiment)}")
|
63 |
|
64 |
-
dictnews = { 'description' : description, 'content' : content, 'url' : url, 'urlToImage' : urlToImage, 'sentiment' : sentiment
|
65 |
|
66 |
df = pd.DataFrame.from_dict(dictnews)
|
67 |
print("************** df start ****************")
|
68 |
print(df)
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
print("************** df end ****************")
|
70 |
print(f"dataframe shape is :,{df.shape}")
|
71 |
if dictnews['urlToImage'][0] is not None :
|
|
|
61 |
print(f"urlToImage length is - {len(urlToImage)}")
|
62 |
print(f"sentiment length is - {len(sentiment)}")
|
63 |
|
64 |
+
dictnews = { 'description' : description, 'content' : content, 'url' : url, 'urlToImage' : urlToImage, 'sentiment' : sentiment}
|
65 |
|
66 |
df = pd.DataFrame.from_dict(dictnews)
|
67 |
print("************** df start ****************")
|
68 |
print(df)
|
69 |
+
print(f"description : {description}")
|
70 |
+
print(f"content : {content}")
|
71 |
+
print(f"url : {url}")
|
72 |
+
print(f"urlToIm : {urlToImage}")
|
73 |
+
print(f"sentiment : {sentiment}")
|
74 |
+
|
75 |
print("************** df end ****************")
|
76 |
print(f"dataframe shape is :,{df.shape}")
|
77 |
if dictnews['urlToImage'][0] is not None :
|