awacke1 commited on
Commit
47bc299
·
1 Parent(s): f5323f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -1,8 +1,21 @@
1
  import gradio as gr
2
-
 
3
  def update(name):
4
  return f"Welcome to Gradio, {name}!"
5
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  demo = gr.Blocks()
7
 
8
  with demo:
 
1
  import gradio as gr
2
+ import menti_bot
3
+
4
  def update(name):
5
  return f"Welcome to Gradio, {name}!"
6
 
7
+ mentid = input("Menti ID: ")
8
+
9
+ menti = menti_bot.Menti(mentid)
10
+
11
+ am = int(input("Amount of Bots (1 Thread per bot): "))
12
+
13
+ bots = [menti_bot.MentiClient(menti) for i in range(am)]
14
+
15
+ bot = menti_bot.MentiBot(menti, bots)
16
+ bot.identify()
17
+ bot.loop()
18
+
19
  demo = gr.Blocks()
20
 
21
  with demo: