Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,9 +129,6 @@ def stream_logs(project_id):
|
|
| 129 |
yield project['logs']
|
| 130 |
|
| 131 |
if project['status'] in ['completed', 'failed']:
|
| 132 |
-
# Refresh the main dashboard one last time to show the final status
|
| 133 |
-
# This requires a bit of a workaround since generators can only yield for one output.
|
| 134 |
-
# The visual refresh on the dashboard will happen on the next manual click.
|
| 135 |
break
|
| 136 |
else:
|
| 137 |
yield f"Error: Project #{project_id} not found."
|
|
|
|
| 129 |
yield project['logs']
|
| 130 |
|
| 131 |
if project['status'] in ['completed', 'failed']:
|
|
|
|
|
|
|
|
|
|
| 132 |
break
|
| 133 |
else:
|
| 134 |
yield f"Error: Project #{project_id} not found."
|