Spaces:
Paused
Paused
Upload app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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"]
|