Update to be compatible with python 3.6 and 3.7
Browse files
app.py
CHANGED
@@ -3,7 +3,11 @@ import logging.handlers
|
|
3 |
import queue
|
4 |
import urllib.request
|
5 |
from pathlib import Path
|
6 |
-
|
|
|
|
|
|
|
|
|
7 |
|
8 |
import av
|
9 |
import cv2
|
|
|
3 |
import queue
|
4 |
import urllib.request
|
5 |
from pathlib import Path
|
6 |
+
|
7 |
+
try:
|
8 |
+
from typing import Literal
|
9 |
+
except ImportError:
|
10 |
+
from typing_extensions import Literal # type: ignore
|
11 |
|
12 |
import av
|
13 |
import cv2
|