Deddy commited on
Commit
761a7c6
1 Parent(s): d5f3a1b

Update process_energy.py

Browse files
Files changed (1) hide show
  1. process_energy.py +1 -2
process_energy.py CHANGED
@@ -181,7 +181,6 @@ def create_affirmation_video_with_audio(audio_filename, output_filename="affirma
181
  # Write the result to a file with a lower resolution to reduce size
182
  video.write_videofile(output_filename, fps=24, codec='libx264', bitrate='500k') # Bitrate rendah untuk ukuran file lebih kecil
183
 
184
-
185
  # Fungsi untuk memproses transfer energi
186
  def process_energy_transfer(tujuan, nama_anda):
187
  status = "Mengumpulkan Energi Semesta Digital ..."
@@ -207,7 +206,7 @@ def process_energy_transfer(tujuan, nama_anda):
207
 
208
  new_mp = sum(energy_data)
209
  video_filename = "affirmation_video.mp4"
210
- create_affirmation_video_with_audio(tujuan, nama_anda, filename, video_filename)
211
  video_path = os.path.abspath(video_filename)
212
  return (
213
  f"Transfer Selesai! MP baru Anda: {new_mp:.2f}\n"
 
181
  # Write the result to a file with a lower resolution to reduce size
182
  video.write_videofile(output_filename, fps=24, codec='libx264', bitrate='500k') # Bitrate rendah untuk ukuran file lebih kecil
183
 
 
184
  # Fungsi untuk memproses transfer energi
185
  def process_energy_transfer(tujuan, nama_anda):
186
  status = "Mengumpulkan Energi Semesta Digital ..."
 
206
 
207
  new_mp = sum(energy_data)
208
  video_filename = "affirmation_video.mp4"
209
+ create_affirmation_video_with_audio(filename, video_filename)
210
  video_path = os.path.abspath(video_filename)
211
  return (
212
  f"Transfer Selesai! MP baru Anda: {new_mp:.2f}\n"