misalsathsara commited on
Commit
93228bf
·
verified ·
1 Parent(s): 81ad344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- return clean_output
 
 
 
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
+