Sharfy commited on
Commit
b5a45ab
·
1 Parent(s): 355a47e

Change image id

Browse files
Files changed (1) hide show
  1. bot.py +2 -2
bot.py CHANGED
@@ -77,7 +77,7 @@ async def predict_image(ctx, id):
77
  description=f"Label: {prediction_data['label']}\nPredictions of our AI algorithms",
78
  color=discord.Colour.blurple(), # Pycord provides a class with default colors you can choose from
79
  )
80
- embed.set_author(name=f"Image Observation {id} - AI Predictions", icon_url=ctx.author.display_avatar.url)
81
 
82
  for i in range(1, 10):
83
  prediction_data_bytes = r.hgetall(f'prediction:{id}:{i}'.encode('utf-8'))
@@ -89,7 +89,7 @@ async def predict_image(ctx, id):
89
  embed.set_thumbnail(url=path)
90
 
91
  # Send the image
92
- await ctx.respond("Hint: You can use [NParks Flora & Fauna Database](https://www.nparks.gov.sg/florafaunaweb), the [Singapore Bird List](https://singapore.biodiversity.online/) or the [Biodiversity of Singapore](https://singapore.biodiversity.online/) references to help you verify", embed=embed)
93
 
94
  @bot.command(
95
  description="Get image observation",
 
77
  description=f"Label: {prediction_data['label']}\nPredictions of our AI algorithms",
78
  color=discord.Colour.blurple(), # Pycord provides a class with default colors you can choose from
79
  )
80
+ embed.set_author(name=f"Image ID: {id} - AI Predictions", icon_url=ctx.author.display_avatar.url)
81
 
82
  for i in range(1, 10):
83
  prediction_data_bytes = r.hgetall(f'prediction:{id}:{i}'.encode('utf-8'))
 
89
  embed.set_thumbnail(url=path)
90
 
91
  # Send the image
92
+ await ctx.respond("Hint: You can use [NParks Flora & Fauna Database](https://www.nparks.gov.sg/florafaunaweb), the [Singapore Bird List](https://singapore.biodiversity.online/) or to verify", embed=embed)
93
 
94
  @bot.command(
95
  description="Get image observation",