bstraehle Devin commited on
Commit
f12aecf
·
1 Parent(s): fae3e6b

Log the full output so it can be copied from the Space logs

Browse files

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Files changed (1) hide show
  1. app.py +2 -0
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