as-cle-bert commited on
Commit
990e37c
·
verified ·
1 Parent(s): 6b750d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- return "You Pokemon might be: " + result[0]
 
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)