Spaces:
Sleeping
Sleeping
Commit
ยท
6648afb
1
Parent(s):
c4a01de
feat: Display final_output_url in pipeline completion message - shows presigned S3 URL where all component outputs are stored with expiry time
Browse files
app.py
CHANGED
|
@@ -1237,6 +1237,12 @@ Here's what I'll do:
|
|
| 1237 |
|
| 1238 |
# V3: Check if we have S3 final output URL
|
| 1239 |
final_output_url = final_payload.get("final_output_url", "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1240 |
|
| 1241 |
friendly_final = f"""๐ **Pipeline Completed Successfully!**
|
| 1242 |
|
|
@@ -1245,7 +1251,7 @@ Here's what I'll do:
|
|
| 1245 |
- Total Steps: {len(steps_completed)}
|
| 1246 |
- Successful: {success_count}
|
| 1247 |
- Executor: {executor_used}
|
| 1248 |
-
|
| 1249 |
๐พ **Would you like to save this workflow for future use?**
|
| 1250 |
Type **'save workflow'** or **'yes'** to save it.
|
| 1251 |
|
|
|
|
| 1237 |
|
| 1238 |
# V3: Check if we have S3 final output URL
|
| 1239 |
final_output_url = final_payload.get("final_output_url", "")
|
| 1240 |
+
final_output_expires = final_payload.get("final_output_expires_at", "")
|
| 1241 |
+
|
| 1242 |
+
# Build URL section
|
| 1243 |
+
url_section = ""
|
| 1244 |
+
if final_output_url:
|
| 1245 |
+
url_section = f"\n๐ **Results Available:**\n- [Download All Outputs]({final_output_url})\n- Expires: {final_output_expires}\n"
|
| 1246 |
|
| 1247 |
friendly_final = f"""๐ **Pipeline Completed Successfully!**
|
| 1248 |
|
|
|
|
| 1251 |
- Total Steps: {len(steps_completed)}
|
| 1252 |
- Successful: {success_count}
|
| 1253 |
- Executor: {executor_used}
|
| 1254 |
+
{url_section}
|
| 1255 |
๐พ **Would you like to save this workflow for future use?**
|
| 1256 |
Type **'save workflow'** or **'yes'** to save it.
|
| 1257 |
|