abhishekjha2468 commited on
Commit
ef46502
Β·
1 Parent(s): 416afc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,6 +5,7 @@ from tensorflow.keras.datasets import cifar10
5
 
6
  from huggingface_hub import from_pretrained_keras
7
  import gradio as gr
 
8
 
9
 
10
  def prepare_output(neighbours):
@@ -52,7 +53,7 @@ if __name__ == "__main__":
52
 
53
  model = from_pretrained_keras("keras-io/cifar10_metric_learning")
54
 
55
- examples = ["examples/yatch.jpeg", "examples/horse.jpeg", "examples/car.jpeg"]
56
  title = "Metric Learning for Image Similarity Search"
57
 
58
  more_text = """Embeddings for the input image are computed using the model. The nearest neighbours are then calculated
 
5
 
6
  from huggingface_hub import from_pretrained_keras
7
  import gradio as gr
8
+ import os
9
 
10
 
11
  def prepare_output(neighbours):
 
53
 
54
  model = from_pretrained_keras("keras-io/cifar10_metric_learning")
55
 
56
+ examples = os.listdir("examples")
57
  title = "Metric Learning for Image Similarity Search"
58
 
59
  more_text = """Embeddings for the input image are computed using the model. The nearest neighbours are then calculated