Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,6 +50,7 @@ async def main():
|
|
| 50 |
)
|
| 51 |
async def echo(ctx,*,input_text):
|
| 52 |
try:
|
|
|
|
| 53 |
# 调用 Gradio 应用 API
|
| 54 |
result = client.predict(
|
| 55 |
message=input_text,
|
|
@@ -59,6 +60,7 @@ async def main():
|
|
| 59 |
|
| 60 |
return result
|
| 61 |
except Exception as e:
|
|
|
|
| 62 |
return f"Erreur:{e}"
|
| 63 |
|
| 64 |
@bot.event
|
|
|
|
| 50 |
)
|
| 51 |
async def echo(ctx,*,input_text):
|
| 52 |
try:
|
| 53 |
+
await message.channel.send("toto")
|
| 54 |
# 调用 Gradio 应用 API
|
| 55 |
result = client.predict(
|
| 56 |
message=input_text,
|
|
|
|
| 60 |
|
| 61 |
return result
|
| 62 |
except Exception as e:
|
| 63 |
+
await message.channel.send("issueo")
|
| 64 |
return f"Erreur:{e}"
|
| 65 |
|
| 66 |
@bot.event
|