fatima02 commited on
Commit
7c0f80b
·
verified ·
1 Parent(s): ab1dfe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import cv2
@@ -212,7 +217,7 @@ def create_interface():
212
  type="numpy",
213
  image_mode="RGB"
214
  )
215
- comparison_input = gr.File(type="file", interactive=True)
216
 
217
  threshold_slider = gr.Slider(
218
  minimum=0.0,
 
1
+ import os
2
+ os.environ["TF_ENABLE_ONEDNN_OPTS"] = "0"
3
+ os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
4
+
5
+
6
  import gradio as gr
7
  import numpy as np
8
  import cv2
 
217
  type="numpy",
218
  image_mode="RGB"
219
  )
220
+ comparison_input = gr.File(type="filepath", interactive=True)
221
 
222
  threshold_slider = gr.Slider(
223
  minimum=0.0,