Pratyush101 commited on
Commit
c7c62ad
·
verified ·
1 Parent(s): aa484b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -15,19 +15,19 @@ from cvzone.SelfiSegmentationModule import SelfiSegmentation
15
  import time
16
  import os
17
 
18
- import asyncio
19
- import aioice
20
-
21
- def ensure_event_loop():
22
- try:
23
- loop = asyncio.get_event_loop()
24
- except RuntimeError: # No event loop found
25
- loop = asyncio.new_event_loop()
26
- asyncio.set_event_loop(loop)
27
- return loop
28
-
29
- # Ensure loop is running before WebRTC setup
30
- ensure_event_loop()
31
 
32
 
33
  HERE = Path(__file__).parent
 
15
  import time
16
  import os
17
 
18
+ # import asyncio
19
+ # import aioice
20
+
21
+ # def ensure_event_loop():
22
+ # try:
23
+ # loop = asyncio.get_event_loop()
24
+ # except RuntimeError: # No event loop found
25
+ # loop = asyncio.new_event_loop()
26
+ # asyncio.set_event_loop(loop)
27
+ # return loop
28
+
29
+ # # Ensure loop is running before WebRTC setup
30
+ # ensure_event_loop()
31
 
32
 
33
  HERE = Path(__file__).parent