prithivMLmods commited on
Commit
f190349
·
verified ·
1 Parent(s): 8aff4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -243,7 +243,7 @@ def run_video_segmentation(source_vid, text_query, frame_limit, time_limit):
243
  video_writer.write(cv2.cvtColor(np.array(final_frame), cv2.COLOR_RGB2BGR))
244
 
245
  video_writer.release()
246
- return temp_out_path, "Video processing completed successfully."
247
 
248
  except Exception as e:
249
  return None, f"Error during video processing: {str(e)}"
@@ -323,4 +323,4 @@ with gr.Blocks(css=custom_css, theme=app_theme) as main_interface:
323
  )
324
 
325
  if __name__ == "__main__":
326
- main_interface.launch(ssr_mode=False, show_error=True)
 
243
  video_writer.write(cv2.cvtColor(np.array(final_frame), cv2.COLOR_RGB2BGR))
244
 
245
  video_writer.release()
246
+ return temp_out_path, "Video processing completed successfully.✅"
247
 
248
  except Exception as e:
249
  return None, f"Error during video processing: {str(e)}"
 
323
  )
324
 
325
  if __name__ == "__main__":
326
+ main_interface.launch(ssr_mode=False, mcp_server=True, show_error=True)