Spaces:
Sleeping
Sleeping
Update test2.py
Browse files
test2.py
CHANGED
|
@@ -198,12 +198,12 @@ def create_post():
|
|
| 198 |
description = entry.get('description', entry.get('summary', ''))
|
| 199 |
print("desc",description)
|
| 200 |
print(type(description))
|
| 201 |
-
image_url =
|
| 202 |
print("img_url",image_url)
|
| 203 |
link = entry.get('link', '')
|
| 204 |
-
if image_url == None:
|
| 205 |
-
|
| 206 |
-
|
| 207 |
transformed = agents.linkedin_transform(title, description,link)
|
| 208 |
|
| 209 |
text = f"{transformed['new_title']} {transformed['new_description']}"
|
|
@@ -220,14 +220,14 @@ def create_post():
|
|
| 220 |
for entry in selected_entries:
|
| 221 |
title = entry.title
|
| 222 |
description = entry.get('description', entry.get('summary', ''))
|
| 223 |
-
image_url =
|
| 224 |
print("desc",description)
|
| 225 |
print(type(description))
|
| 226 |
print("img_url",image_url)
|
| 227 |
link = entry.get('link', '')
|
| 228 |
-
if image_url == None:
|
| 229 |
-
|
| 230 |
-
|
| 231 |
|
| 232 |
|
| 233 |
transformed = agents.twitter_transform(title, description,link)
|
|
|
|
| 198 |
description = entry.get('description', entry.get('summary', ''))
|
| 199 |
print("desc",description)
|
| 200 |
print(type(description))
|
| 201 |
+
image_url = None
|
| 202 |
print("img_url",image_url)
|
| 203 |
link = entry.get('link', '')
|
| 204 |
+
# if image_url == None:
|
| 205 |
+
# print("here44444")
|
| 206 |
+
# image_url = None
|
| 207 |
transformed = agents.linkedin_transform(title, description,link)
|
| 208 |
|
| 209 |
text = f"{transformed['new_title']} {transformed['new_description']}"
|
|
|
|
| 220 |
for entry in selected_entries:
|
| 221 |
title = entry.title
|
| 222 |
description = entry.get('description', entry.get('summary', ''))
|
| 223 |
+
image_url = None
|
| 224 |
print("desc",description)
|
| 225 |
print(type(description))
|
| 226 |
print("img_url",image_url)
|
| 227 |
link = entry.get('link', '')
|
| 228 |
+
# if image_url == None:
|
| 229 |
+
# print("here44444")
|
| 230 |
+
# image_url = "https://youtube.com/playlist?list=PLacDrP-7Ys6IsnPRN0ToTfjH8gQ4s6mL9&si=shb65ODGWXhcG1wq"
|
| 231 |
|
| 232 |
|
| 233 |
transformed = agents.twitter_transform(title, description,link)
|