ziv-conntour commited on
Commit
e77c85e
·
verified ·
1 Parent(s): 20fce65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def send_message_with_file(
26
 
27
 
28
  try:
29
- if SLACK_MESSAGES_SENT < 2:
30
  response = client.files_upload_v2(
31
  channel=SLACK_BOT_CHANNEL_ID,
32
  initial_comment=message,
@@ -242,7 +242,7 @@ def analyze_stream(prompt, chatbot):
242
  global base_start_time
243
  stop_capture = False
244
  half_hour_in_secs = 1800 # long sf junction video length
245
- extra_frames_because_we_love_gambling_in_casinos = 8
246
  video_start = int(int(time.time() - base_start_time) % half_hour_in_secs) + extra_frames_because_we_love_gambling_in_casinos
247
 
248
  # stream = "https://streamapi2.eu.loclx.io/video_feed/101"
 
26
 
27
 
28
  try:
29
+ if SLACK_MESSAGES_SENT <= 1:
30
  response = client.files_upload_v2(
31
  channel=SLACK_BOT_CHANNEL_ID,
32
  initial_comment=message,
 
242
  global base_start_time
243
  stop_capture = False
244
  half_hour_in_secs = 1800 # long sf junction video length
245
+ extra_frames_because_we_love_gambling_in_casinos = 10
246
  video_start = int(int(time.time() - base_start_time) % half_hour_in_secs) + extra_frames_because_we_love_gambling_in_casinos
247
 
248
  # stream = "https://streamapi2.eu.loclx.io/video_feed/101"