Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,18 +97,10 @@ def predict(image=None, text=None, sketch=None):
|
|
97 |
return outputs
|
98 |
|
99 |
|
100 |
-
def
|
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(
|