Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,4 +69,6 @@ def generate_code(data: RequestData):
|
|
69 |
match = re.search(r"function\s+transform\(.*?\)\s*{.*?return row;\s*}", generated_text, re.DOTALL)
|
70 |
clean_output = match.group(0).strip() if match else generated_text.strip()
|
71 |
|
72 |
-
|
|
|
|
|
|
69 |
match = re.search(r"function\s+transform\(.*?\)\s*{.*?return row;\s*}", generated_text, re.DOTALL)
|
70 |
clean_output = match.group(0).strip() if match else generated_text.strip()
|
71 |
|
72 |
+
from fastapi.responses import PlainTextResponse
|
73 |
+
return PlainTextResponse(clean_output)
|
74 |
+
|