Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,10 @@ async def mock_endpoint(payload: MockRequest):
|
|
| 137 |
end_time = time.monotonic()
|
| 138 |
duration = end_time - start_time
|
| 139 |
print(f"Requête complétée en {duration:.2f} secondes.")
|
| 140 |
-
return {
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
|
| 143 |
|
|
|
|
| 137 |
end_time = time.monotonic()
|
| 138 |
duration = end_time - start_time
|
| 139 |
print(f"Requête complétée en {duration:.2f} secondes.")
|
| 140 |
+
return {
|
| 141 |
+
"response_from_client": websocket_response,
|
| 142 |
+
"completion_time_in_seconds": round(duration, 2)
|
| 143 |
+
}
|
| 144 |
|
| 145 |
|
| 146 |
|