Spaces:
Running
Running
try to debug json error
Browse files
app.py
CHANGED
@@ -78,12 +78,11 @@ def process_image(image):
|
|
78 |
{"name": 1, "type": 1, "url": 1, "gamerpics.$": 1},
|
79 |
)
|
80 |
|
81 |
-
print(title)
|
82 |
-
|
83 |
title["rank"] = idx
|
84 |
title["score"] = str(round((1 / (distances[0][idx] + 1) * 100), 2)) + "%"
|
85 |
matches.append(title)
|
86 |
|
|
|
87 |
return matches
|
88 |
|
89 |
|
@@ -95,4 +94,4 @@ iface = gr.Interface(
|
|
95 |
)
|
96 |
|
97 |
# Launch the Gradio app
|
98 |
-
iface.launch(
|
|
|
78 |
{"name": 1, "type": 1, "url": 1, "gamerpics.$": 1},
|
79 |
)
|
80 |
|
|
|
|
|
81 |
title["rank"] = idx
|
82 |
title["score"] = str(round((1 / (distances[0][idx] + 1) * 100), 2)) + "%"
|
83 |
matches.append(title)
|
84 |
|
85 |
+
print(matches)
|
86 |
return matches
|
87 |
|
88 |
|
|
|
94 |
)
|
95 |
|
96 |
# Launch the Gradio app
|
97 |
+
iface.launch()
|