Spaces:
Running
Running
Remove mixpanel to test freezing
Browse files- app.py +4 -4
- requirements.txt +1 -1
app.py
CHANGED
@@ -13,15 +13,15 @@ from copy import deepcopy
|
|
13 |
from functools import wraps
|
14 |
from PIL import Image, ImageDraw
|
15 |
from typing import get_type_hints, Optional
|
16 |
-
from mixpanel import Mixpanel
|
17 |
|
18 |
from utils import is_not_supported_transform
|
19 |
|
20 |
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
21 |
logger = logging.getLogger(__name__)
|
22 |
|
23 |
-
MIXPANEL_TOKEN = os.getenv("MIXPANEL_TOKEN")
|
24 |
-
mp = Mixpanel(MIXPANEL_TOKEN)
|
25 |
|
26 |
HEADER = f"""
|
27 |
<div align="center">
|
@@ -99,7 +99,7 @@ class RequestParams:
|
|
99 |
def track_event(event_name, user_id="unknown", properties=None):
|
100 |
if properties is None:
|
101 |
properties = {}
|
102 |
-
mp.track(user_id, event_name, properties)
|
103 |
logger.info(f"Event tracked: {event_name} - {properties}")
|
104 |
|
105 |
|
|
|
13 |
from functools import wraps
|
14 |
from PIL import Image, ImageDraw
|
15 |
from typing import get_type_hints, Optional
|
16 |
+
# from mixpanel import Mixpanel
|
17 |
|
18 |
from utils import is_not_supported_transform
|
19 |
|
20 |
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
21 |
logger = logging.getLogger(__name__)
|
22 |
|
23 |
+
# MIXPANEL_TOKEN = os.getenv("MIXPANEL_TOKEN")
|
24 |
+
# mp = Mixpanel(MIXPANEL_TOKEN)
|
25 |
|
26 |
HEADER = f"""
|
27 |
<div align="center">
|
|
|
99 |
def track_event(event_name, user_id="unknown", properties=None):
|
100 |
if properties is None:
|
101 |
properties = {}
|
102 |
+
#mp.track(user_id, event_name, properties)
|
103 |
logger.info(f"Event tracked: {event_name} - {properties}")
|
104 |
|
105 |
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
albumentations
|
2 |
Pillow
|
3 |
-
mixpanel
|
|
|
1 |
albumentations
|
2 |
Pillow
|
3 |
+
# mixpanel
|