userIdc2024 commited on
Commit
c6d32c9
·
verified ·
1 Parent(s): ca19024

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -63,7 +63,7 @@ def configure_gemini():
63
  return False
64
 
65
  # Enhanced system prompt with timestamp-based improvements
66
- SYSTEM_PROMPT = f"""{os.getenv("SYS_PROMPT")}"""
67
  logger.info(f"System prompt loaded, length: {len(SYSTEM_PROMPT) if SYSTEM_PROMPT else 0}")
68
 
69
  def analyze_video_and_generate_script(
@@ -294,7 +294,7 @@ def display_script_variations(json_data):
294
 
295
  st.markdown(f"### Variation {i}: {variation_name}")
296
 
297
- #Convert script table to DataFrame for better display
298
  script_data = variation.get("script_table")
299
  if not script_data:
300
  warning_msg = f"No script data for {variation_name}"
@@ -339,7 +339,7 @@ def display_video_analysis(json_data):
339
  analysis = json_data["video_analysis"]
340
  logger.debug(f"Video analysis type: {type(analysis)}")
341
 
342
- #Display general analysis
343
  video_metrics = []
344
  if isinstance(analysis, dict):
345
  col1, col2 = st.columns(2)
 
63
  return False
64
 
65
  # Enhanced system prompt with timestamp-based improvements
66
+ SYSTEM_PROMPT = f"""{os.getenv("SYS_PROMPT", "")}"""
67
  logger.info(f"System prompt loaded, length: {len(SYSTEM_PROMPT) if SYSTEM_PROMPT else 0}")
68
 
69
  def analyze_video_and_generate_script(
 
294
 
295
  st.markdown(f"### Variation {i}: {variation_name}")
296
 
297
+ # Convert script table to DataFrame for better display
298
  script_data = variation.get("script_table")
299
  if not script_data:
300
  warning_msg = f"No script data for {variation_name}"
 
339
  analysis = json_data["video_analysis"]
340
  logger.debug(f"Video analysis type: {type(analysis)}")
341
 
342
+ # Display general analysis
343
  video_metrics = []
344
  if isinstance(analysis, dict):
345
  col1, col2 = st.columns(2)