robinroy03 commited on
Commit
a749a60
1 Parent(s): 1b31a45
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -44,5 +44,17 @@ async def on_message(message):
44
  print(e)
45
  await message.reply(content="Sorry something internally went wrong. Retry again.")
46
 
 
 
47
 
48
- bot.run(token)
 
 
 
 
 
 
 
 
 
 
 
44
  print(e)
45
  await message.reply(content="Sorry something internally went wrong. Retry again.")
46
 
47
+ if __name__ == "__main__":
48
+ import gradio as gr
49
 
50
+ def greet():
51
+ return "Hello"
52
+
53
+ demo = gr.Interface(
54
+ fn=greet,
55
+ inputs=[],
56
+ outputs=["text"],
57
+ )
58
+
59
+ demo.launch()
60
+ bot.run(token)