Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from visualization import create_charts
|
|
6 |
import time
|
7 |
from config import openai_api_key
|
8 |
import plotly.graph_objs as go
|
|
|
9 |
|
10 |
# Load the model
|
11 |
llm = load_model(openai_api_key)
|
@@ -23,7 +24,9 @@ def analyze_video(video_path, max_speakers, progress=gr.Progress()):
|
|
23 |
progress(0.5, desc="Transcription and diarization complete.")
|
24 |
|
25 |
progress(0.6, desc="Processing transcription")
|
26 |
-
|
|
|
|
|
27 |
print("Processed results:", results) # Debug print
|
28 |
progress(0.7, desc="Transcription processing complete.")
|
29 |
|
|
|
6 |
import time
|
7 |
from config import openai_api_key
|
8 |
import plotly.graph_objs as go
|
9 |
+
import json
|
10 |
|
11 |
# Load the model
|
12 |
llm = load_model(openai_api_key)
|
|
|
24 |
progress(0.5, desc="Transcription and diarization complete.")
|
25 |
|
26 |
progress(0.6, desc="Processing transcription")
|
27 |
+
raw_llm_output = llm(transcription) # This should return the JSON string
|
28 |
+
print("Raw LLM Output:", raw_llm_output) # Debug print
|
29 |
+
results = process_input(raw_llm_output, llm)
|
30 |
print("Processed results:", results) # Debug print
|
31 |
progress(0.7, desc="Transcription processing complete.")
|
32 |
|