Debugging shit
Browse files
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):
|