minor bux fixed 4
Browse files
app.py
CHANGED
@@ -2,11 +2,12 @@ import gradio as gr
|
|
2 |
import json
|
3 |
from src.pipeline import run_pipeline, search_highlights
|
4 |
from dotenv import load_dotenv
|
|
|
5 |
|
6 |
load_dotenv()
|
7 |
|
8 |
def extract(video_file, game_card_str):
|
9 |
-
video_file.
|
10 |
result = run_pipeline("uploaded.mp4", game_card_str)
|
11 |
return json.dumps(result, indent=2)
|
12 |
|
|
|
2 |
import json
|
3 |
from src.pipeline import run_pipeline, search_highlights
|
4 |
from dotenv import load_dotenv
|
5 |
+
import shutil
|
6 |
|
7 |
load_dotenv()
|
8 |
|
9 |
def extract(video_file, game_card_str):
|
10 |
+
shutil.copy(video_file.name, "uploaded.mp4")
|
11 |
result = run_pipeline("uploaded.mp4", game_card_str)
|
12 |
return json.dumps(result, indent=2)
|
13 |
|