Araeynn commited on
Commit
d13ecf4
1 Parent(s): fc59755

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()