Spaces:
Running
Running
woodserino
commited on
Commit
·
9a41e30
1
Parent(s):
d71e8fa
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import random
|
4 |
-
from src.model import
|
5 |
from src.similarity.similarity import Similarity
|
6 |
from PIL import Image
|
7 |
import glob
|
@@ -21,9 +21,6 @@ with gr.Blocks() as demo:
|
|
21 |
gr.Markdown('Checking Image Similarity')
|
22 |
img_main = gr.Text(label='Main Image', placeholder='https://myimage.jpg')
|
23 |
|
24 |
-
gr.Markdown('Images to check')
|
25 |
-
img_1 = gr.Text(label='1st Image', placeholder='https://myimage_1.jpg')
|
26 |
-
img_2 = gr.Text(label='2nd Image', placeholder='https://myimage_2.jpg')
|
27 |
|
28 |
gr.Markdown('Choose the model')
|
29 |
model = gr.Dropdown([m.name for m in models], label='Model', type='index')
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import random
|
4 |
+
from src.model import similarity_model as model
|
5 |
from src.similarity.similarity import Similarity
|
6 |
from PIL import Image
|
7 |
import glob
|
|
|
21 |
gr.Markdown('Checking Image Similarity')
|
22 |
img_main = gr.Text(label='Main Image', placeholder='https://myimage.jpg')
|
23 |
|
|
|
|
|
|
|
24 |
|
25 |
gr.Markdown('Choose the model')
|
26 |
model = gr.Dropdown([m.name for m in models], label='Model', type='index')
|