sugiv commited on
Commit
e4226f8
·
1 Parent(s): 4ce07be

Debugging shit

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -96,6 +96,9 @@ Here's the complete Python function implementation:
96
  # Handle exceptions and return an error message
97
  yield {"error": str(e)}
98
 
 
 
 
99
  return StreamingResponse(generate(), media_type="text/plain")
100
 
101
  def extract_and_format_code(text):
 
96
  # Handle exceptions and return an error message
97
  yield {"error": str(e)}
98
 
99
+ logger.info(StreamingResponse(generate(), media_type="application/x-ndjson"))
100
+ logger.info(StreamingResponse(generate(), media_type="text/plain"))
101
+ logger.info(StreamingResponse(generate(), media_type="application/json"))
102
  return StreamingResponse(generate(), media_type="text/plain")
103
 
104
  def extract_and_format_code(text):