hina19 commited on
Commit
ec0deea
·
verified ·
1 Parent(s): 0557c7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,13 +88,13 @@ if uploaded_file:
88
  st.write("📖 Summarizing captions using AI...")
89
 
90
  def summarize_captions(captions):
91
- prompt = f"Summarize the following sequence of video frames into a meaningful story under 500 characters:\n\n{captions}"
92
 
93
  completion = client.chat.completions.create(
94
  model="gpt-4o-mini",
95
  messages=[{"role": "system", "content": "You are an AI that summarizes video content."},
96
  {"role": "user", "content": prompt}],
97
- max_tokens=150
98
  )
99
  return completion.choices[0].message.content
100
 
 
88
  st.write("📖 Summarizing captions using AI...")
89
 
90
  def summarize_captions(captions):
91
+ prompt = f"Summarize the following sequence of video frames into a meaningful story under 800 characters:\n\n{captions}"
92
 
93
  completion = client.chat.completions.create(
94
  model="gpt-4o-mini",
95
  messages=[{"role": "system", "content": "You are an AI that summarizes video content."},
96
  {"role": "user", "content": prompt}],
97
+ max_tokens=200
98
  )
99
  return completion.choices[0].message.content
100