flocolombari
commited on
Commit
•
84029b5
1
Parent(s):
4a02f29
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def video_to_descriptions(video, target_language="en"):
|
|
107 |
plan_number = 1
|
108 |
summarized_description = f"We can see the Scene number {plan_number}, where "
|
109 |
|
110 |
-
for plan in concatenated_description
|
111 |
if not (summarized_description == "We can see the Scene number 1, where "):
|
112 |
summarized_description += f"There has been a scene change, now we can observe the Scene number {plan_number}, where "
|
113 |
summarized_description += Summarize(plan, max_length=20)[0]["summary_text"]
|
|
|
107 |
plan_number = 1
|
108 |
summarized_description = f"We can see the Scene number {plan_number}, where "
|
109 |
|
110 |
+
for plan in concatenated_description:
|
111 |
if not (summarized_description == "We can see the Scene number 1, where "):
|
112 |
summarized_description += f"There has been a scene change, now we can observe the Scene number {plan_number}, where "
|
113 |
summarized_description += Summarize(plan, max_length=20)[0]["summary_text"]
|