Spaces:
Running
Running
kargaranamir
commited on
Commit
•
0c113b0
1
Parent(s):
d822af7
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,6 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from visual_clutter import Vlc
|
4 |
|
5 |
-
torch.hub.download_url_to_file('https://github.com/kargaranamir/visual-clutter/raw/main/tests/test.jpg', 'test.jpg')
|
6 |
-
torch.hub.download_url_to_file('https://github.com/kargaranamir/visual-clutter/raw/main/tests/test2.jpg', 'test2.jpg')
|
7 |
-
|
8 |
|
9 |
def inference(img):
|
10 |
clt = Vlc(img.name, numlevels=3, contrast_filt_sigma=1, contrast_pool_sigma=3, color_pool_sigma=3, prefix='test')
|
|
|
2 |
import torch
|
3 |
from visual_clutter import Vlc
|
4 |
|
|
|
|
|
|
|
5 |
|
6 |
def inference(img):
|
7 |
clt = Vlc(img.name, numlevels=3, contrast_filt_sigma=1, contrast_pool_sigma=3, color_pool_sigma=3, prefix='test')
|