Spaces:
Running
Running
test
Browse files
app.py
CHANGED
@@ -71,7 +71,6 @@ def process_image(image):
|
|
71 |
matches = []
|
72 |
for idx, matching_gamerpic in enumerate(indices[0]):
|
73 |
gamerpic = images[matching_gamerpic]
|
74 |
-
print(gamerpic)
|
75 |
# Return the corresponding title with only the matched gamerpic
|
76 |
title = db.titles.find_one(
|
77 |
{"gamerpics.cdn": gamerpic},
|
@@ -83,14 +82,14 @@ def process_image(image):
|
|
83 |
matches.append(title)
|
84 |
|
85 |
print(matches)
|
86 |
-
return
|
87 |
|
88 |
|
89 |
# Create a Gradio interface
|
90 |
iface = gr.Interface(
|
91 |
fn=process_image,
|
92 |
inputs=gr.Image(type="pil"), # Adjust the shape as needed
|
93 |
-
outputs="
|
94 |
)
|
95 |
|
96 |
# Launch the Gradio app
|
|
|
71 |
matches = []
|
72 |
for idx, matching_gamerpic in enumerate(indices[0]):
|
73 |
gamerpic = images[matching_gamerpic]
|
|
|
74 |
# Return the corresponding title with only the matched gamerpic
|
75 |
title = db.titles.find_one(
|
76 |
{"gamerpics.cdn": gamerpic},
|
|
|
82 |
matches.append(title)
|
83 |
|
84 |
print(matches)
|
85 |
+
return "<h1>GG BRO ! </h1>"
|
86 |
|
87 |
|
88 |
# Create a Gradio interface
|
89 |
iface = gr.Interface(
|
90 |
fn=process_image,
|
91 |
inputs=gr.Image(type="pil"), # Adjust the shape as needed
|
92 |
+
outputs="html", # Or any other output format that suits your needs
|
93 |
)
|
94 |
|
95 |
# Launch the Gradio app
|