userIdc2024 commited on
Commit
3a70dec
·
verified ·
1 Parent(s): 4869d0c

Update components/render_analysis.py

Browse files
Files changed (1) hide show
  1. components/render_analysis.py +5 -5
components/render_analysis.py CHANGED
@@ -80,7 +80,7 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
80
  storyboard,
81
  {"timeline":"Timeline","scene":"Scene","visuals":"Visuals","dialogue":"Dialogue","camera":"Camera","sound_effects":"Sound Effects"}
82
  )
83
- st.dataframe(_search_dataframe(df, q), use_container_width=True, height=480)
84
  else:
85
  st.info("No storyboard available.")
86
 
@@ -88,7 +88,7 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
88
  q2 = st.text_input("Search script")
89
  if script:
90
  df = _to_dataframe(script, {"timeline":"Timeline","dialogue":"Dialogue"})
91
- st.dataframe(_search_dataframe(df, q2), use_container_width=True, height=480)
92
  else:
93
  st.info("No script breakdown available.")
94
 
@@ -99,7 +99,7 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
99
  metrics,
100
  {"timestamp":"Timestamp","element":"Element","current_approach":"Current Approach","effectiveness_score":"Effectiveness Score","notes":"Notes"}
101
  )
102
- st.dataframe(_search_dataframe(dfm, q3), use_container_width=True, height=480)
103
  else:
104
  st.info("No video metrics available.")
105
 
@@ -117,7 +117,7 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
117
  imp_df["Priority"] = imp_df["Priority"].astype(order)
118
  if "Timestamp" in imp_df.columns:
119
  imp_df = imp_df.sort_values(["Priority","Timestamp"])
120
- st.dataframe(_search_dataframe(imp_df, q4), use_container_width=True, height=480)
121
  else:
122
  st.info("No timestamp-based improvements available.")
123
 
@@ -130,5 +130,5 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
130
  data=res.encode("utf-8"),
131
  file_name="ad_analysis.json",
132
  mime="application/json",
133
- use_container_width=True
134
  )
 
80
  storyboard,
81
  {"timeline":"Timeline","scene":"Scene","visuals":"Visuals","dialogue":"Dialogue","camera":"Camera","sound_effects":"Sound Effects"}
82
  )
83
+ st.dataframe(_search_dataframe(df, q), width='stretch', height=480)
84
  else:
85
  st.info("No storyboard available.")
86
 
 
88
  q2 = st.text_input("Search script")
89
  if script:
90
  df = _to_dataframe(script, {"timeline":"Timeline","dialogue":"Dialogue"})
91
+ st.dataframe(_search_dataframe(df, q2), width='stretch', height=480)
92
  else:
93
  st.info("No script breakdown available.")
94
 
 
99
  metrics,
100
  {"timestamp":"Timestamp","element":"Element","current_approach":"Current Approach","effectiveness_score":"Effectiveness Score","notes":"Notes"}
101
  )
102
+ st.dataframe(_search_dataframe(dfm, q3), width='stretch', height=480)
103
  else:
104
  st.info("No video metrics available.")
105
 
 
117
  imp_df["Priority"] = imp_df["Priority"].astype(order)
118
  if "Timestamp" in imp_df.columns:
119
  imp_df = imp_df.sort_values(["Priority","Timestamp"])
120
+ st.dataframe(_search_dataframe(imp_df, q4), width='stretch', height=480)
121
  else:
122
  st.info("No timestamp-based improvements available.")
123
 
 
130
  data=res.encode("utf-8"),
131
  file_name="ad_analysis.json",
132
  mime="application/json",
133
+ width='stretch'
134
  )