versae commited on
Commit
f68306b
·
1 Parent(s): d41c1b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -97,18 +97,10 @@ def predict(image=None, text=None, sketch=None):
97
  return outputs
98
 
99
 
100
- def predict_image(image):
101
- return predict(image, None, None)
102
-
103
-
104
- def predict_text(image=None, text=None, sketch=None):
105
  return predict(None, text, None)
106
 
107
 
108
- def predict_sketch(image=None, text=None, sketch=None):
109
- return predict(None, None, image)
110
-
111
-
112
  title = "Type or draw to search in the Nasjonalbiblioteket"
113
  description = "Find images in the Nasjonalbiblioteket image collections based on what you draw or type"
114
  interface = gr.Interface(
 
97
  return outputs
98
 
99
 
100
+ def predict_text(text):
 
 
 
 
101
  return predict(None, text, None)
102
 
103
 
 
 
 
 
104
  title = "Type or draw to search in the Nasjonalbiblioteket"
105
  description = "Find images in the Nasjonalbiblioteket image collections based on what you draw or type"
106
  interface = gr.Interface(