whitphx HF staff commited on
Commit
f55d78e
1 Parent(s): 6b4c5f9

Update to be compatible with python 3.6 and 3.7

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,7 +3,11 @@ import logging.handlers
3
  import queue
4
  import urllib.request
5
  from pathlib import Path
6
- from typing import Literal
 
 
 
 
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