Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -253,5 +253,14 @@ async def remove(ctx:discord.Interaction):
|
|
253 |
embed = discord.Embed(title="Success!", description=f"You can now chat with the bot in <#{ctx.channel.id}>")
|
254 |
await ctx.respond(embed=embed)
|
255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
Process(target=demo.launch, kwargs={"auth":("araeyn", "araeyn")}).start()
|
257 |
Process(target=bot.run, args=[os.environ.get("TOKEN")]).start()
|
|
|
253 |
embed = discord.Embed(title="Success!", description=f"You can now chat with the bot in <#{ctx.channel.id}>")
|
254 |
await ctx.respond(embed=embed)
|
255 |
|
256 |
+
def greet(name, intensity):
|
257 |
+
return "Hello, " + name + "!" * int(intensity)
|
258 |
+
|
259 |
+
demo = gr.Interface(
|
260 |
+
fn=greet,
|
261 |
+
inputs=["text", "slider"],
|
262 |
+
outputs=["text"],
|
263 |
+
)
|
264 |
+
|
265 |
Process(target=demo.launch, kwargs={"auth":("araeyn", "araeyn")}).start()
|
266 |
Process(target=bot.run, args=[os.environ.get("TOKEN")]).start()
|