Log the full output so it can be copied from the Space logs
Browse filesGenerated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
app.py
CHANGED
|
@@ -35,6 +35,8 @@ async def invoke(openai_api_key: str, task: str) -> str:
|
|
| 35 |
|
| 36 |
if not result:
|
| 37 |
raise gr.Error("The model returned no output.")
|
|
|
|
|
|
|
| 38 |
return result
|
| 39 |
|
| 40 |
|
|
|
|
| 35 |
|
| 36 |
if not result:
|
| 37 |
raise gr.Error("The model returned no output.")
|
| 38 |
+
|
| 39 |
+
logger.info("Output for %r:\n=== BEGIN OUTPUT ===\n%s\n=== END OUTPUT ===", task, result)
|
| 40 |
return result
|
| 41 |
|
| 42 |
|