Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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,
|