Spaces:
Runtime error
Runtime error
File size: 690 Bytes
f5323f0 47bc299 f5323f0 47bc299 f5323f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
import gradio as gr
import menti_bot
def update(name):
return f"Welcome to Gradio, {name}!"
mentid = input("Menti ID: ")
menti = menti_bot.Menti(mentid)
am = int(input("Amount of Bots (1 Thread per bot): "))
bots = [menti_bot.MentiClient(menti) for i in range(am)]
bot = menti_bot.MentiBot(menti, bots)
bot.identify()
bot.loop()
demo = gr.Blocks()
with demo:
gr.Markdown(
"""
# Hello World!
Start typing below to see the output.
""")
inp = gr.Textbox(placeholder="What is your name?")
out = gr.Textbox()
inp.change(fn=update,
inputs=inp,
outputs=out)
demo.launch() |