jw2yang commited on
Commit
753a0ae
1 Parent(s): 7f59780

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import requests
2
  import gradio as gr
3
  import numpy as np
4
- import cv2
 
 
5
  import torch
6
  import torch.nn as nn
7
  from PIL import Image
 
1
  import requests
2
  import gradio as gr
3
  import numpy as np
4
+ # import cv2
5
+ if not INTERNAL:
6
+ import cv2 # pylint: disable=g-import-not-at-top
7
  import torch
8
  import torch.nn as nn
9
  from PIL import Image