Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,11 +72,12 @@ def recommend_channels(product_description):
|
|
| 72 |
|
| 73 |
for channel, score in ranked_channels:
|
| 74 |
note = channels[channel]
|
| 75 |
-
output += f"**{channel} ({score:.2f})** → {note}\n"
|
| 76 |
|
| 77 |
accounts = search_accounts(product_description, channel)
|
| 78 |
for (name, url) in accounts:
|
| 79 |
-
output += f"{name}\nURL: {url}\n\n"
|
|
|
|
| 80 |
|
| 81 |
return output
|
| 82 |
|
|
|
|
| 72 |
|
| 73 |
for channel, score in ranked_channels:
|
| 74 |
note = channels[channel]
|
| 75 |
+
output += f"**{channel} ({score:.2f})** → {note} \n" # two spaces → line break
|
| 76 |
|
| 77 |
accounts = search_accounts(product_description, channel)
|
| 78 |
for (name, url) in accounts:
|
| 79 |
+
output += f"{name} \nURL: {url} \n\n" # forced line breaks
|
| 80 |
+
output += "\n"
|
| 81 |
|
| 82 |
return output
|
| 83 |
|