sreepathi-ravikumar commited on
Commit
f6e5a20
·
verified ·
1 Parent(s): 0cfcaa5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -240,7 +240,8 @@ def generate_video():
240
 
241
 
242
 
243
- raw_body = request.data.decode("utf-8").strip()
 
244
  print(f"Raw body length: {len(raw_body)}")
245
  print(f"First 200 chars: {raw_body[:200]}")
246
 
 
240
 
241
 
242
 
243
+ raw_data = request.get_json()
244
+ raw_body=raw_data.get("jsondata" : '').strip()
245
  print(f"Raw body length: {len(raw_body)}")
246
  print(f"First 200 chars: {raw_body[:200]}")
247