sreepathi-ravikumar commited on
Commit
e7003eb
·
verified ·
1 Parent(s): a26baec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -239,8 +239,9 @@ def generate_video():
239
  # Try reading raw body text
240
  raw_body = request.data.decode("utf-8").strip()
241
  data = None
 
242
 
243
- if not raw_body:
244
  return jsonify({"error": "No input data provided"}), 400
245
 
246
  # Try to detect if input is JSON or plain string
@@ -391,7 +392,7 @@ def generate_video():
391
 
392
  except subprocess.TimeoutExpired:
393
  print("Video rendering timeout")
394
- return jsonify({"error": "Video rendering timeout (120s)"}), 504
395
  except Exception as e:
396
  print(f"Error: {str(e)}")
397
  traceback.print_exc()
 
239
  # Try reading raw body text
240
  raw_body = request.data.decode("utf-8").strip()
241
  data = None
242
+ print(raw_body)
243
 
244
+ '''if not raw_body:
245
  return jsonify({"error": "No input data provided"}), 400
246
 
247
  # Try to detect if input is JSON or plain string
 
392
 
393
  except subprocess.TimeoutExpired:
394
  print("Video rendering timeout")
395
+ return jsonify({"error": "Video rendering timeout (120s)"}), 504'''
396
  except Exception as e:
397
  print(f"Error: {str(e)}")
398
  traceback.print_exc()