Spaces:
Running
Running
as-cle-bert
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ def chat_pokemon(message: str):
|
|
34 |
def what_pokemon(image_input):
|
35 |
save_path = Image.fromarray(image_input)
|
36 |
result = searcher.search_image(save_path)
|
37 |
-
|
|
|
38 |
|
39 |
def card_package(n_cards:int=5):
|
40 |
description, cards = choose_random_cards(n_cards)
|
@@ -50,4 +51,4 @@ iface3 = gr.Interface(fn=card_package, title="Pokemon Card Package", description
|
|
50 |
|
51 |
iface = gr.TabbedInterface([iface1, iface2, iface3], ["PokemonChat", "Identify Pokemon", "Card Package"])
|
52 |
|
53 |
-
iface.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
34 |
def what_pokemon(image_input):
|
35 |
save_path = Image.fromarray(image_input)
|
36 |
result = searcher.search_image(save_path)
|
37 |
+
results = "\n".join(result)
|
38 |
+
return "You Pokemon might be:\n" + results
|
39 |
|
40 |
def card_package(n_cards:int=5):
|
41 |
description, cards = choose_random_cards(n_cards)
|
|
|
51 |
|
52 |
iface = gr.TabbedInterface([iface1, iface2, iface3], ["PokemonChat", "Identify Pokemon", "Card Package"])
|
53 |
|
54 |
+
iface.launch(server_name="0.0.0.0", server_port=7860)
|