patocolher commited on
Commit
efe7a22
·
verified ·
1 Parent(s): 0441b85

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -86,7 +86,9 @@ def reencode_video(video_file, modo, resolucao, fps, normalizar_audio, remover_d
86
 
87
  with open(stats_path, "r") as f_stats:
88
  raw = f_stats.read()
89
- stats = json.loads(raw[raw.find("{"):])
 
 
90
  m_I = stats["input_i"]
91
  m_TP = stats["input_tp"]
92
  m_LRA = stats["input_lra"]
 
86
 
87
  with open(stats_path, "r") as f_stats:
88
  raw = f_stats.read()
89
+ start = raw.find("{")
90
+ end = raw.rfind("}") + 1
91
+ stats = json.loads(raw[start:end])
92
  m_I = stats["input_i"]
93
  m_TP = stats["input_tp"]
94
  m_LRA = stats["input_lra"]