sreepathi-ravikumar commited on
Commit
0c07a2d
·
verified ·
1 Parent(s): fd488e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -253,8 +253,8 @@ def generate_video():
253
  "equation_size": 42,
254
  "title_size": 48
255
  },
256
- "slides":datalst}'''
257
- '''# Now proceed with video generation using 'data'
258
  print(json.dumps(data, indent=2)) # For debugging
259
  # ✅ Final validation
260
  if "slides" not in data or not data["slides"]:
@@ -351,7 +351,7 @@ def generate_video():
351
  output_path,
352
  mimetype='video/mp4',
353
  as_attachment=False,
354
- download_name="math.mp4"
355
  )
356
 
357
  except subprocess.TimeoutExpired:
 
253
  "equation_size": 42,
254
  "title_size": 48
255
  },
256
+ "slides":datalst}
257
+ # Now proceed with video generation using 'data'
258
  print(json.dumps(data, indent=2)) # For debugging
259
  # ✅ Final validation
260
  if "slides" not in data or not data["slides"]:
 
351
  output_path,
352
  mimetype='video/mp4',
353
  as_attachment=False,
354
+ download_name=output_filename
355
  )
356
 
357
  except subprocess.TimeoutExpired: