Spaces:
kuro223
/
Runtime error

Docfile commited on
Commit
6a1c675
·
1 Parent(s): 1b8020d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import telebot
2
 
3
  bot = telebot.TeleBot("6459409517:AAFt4bQkR5T2Wl-ojErf2yv-_I0LxF87QFQ")
@@ -10,4 +12,10 @@ def send_welcome(message):
10
  def echo_all(message):
11
  bot.reply_to(message, message.text)
12
 
13
- bot.infinity_polling()
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
  import telebot
4
 
5
  bot = telebot.TeleBot("6459409517:AAFt4bQkR5T2Wl-ojErf2yv-_I0LxF87QFQ")
 
12
  def echo_all(message):
13
  bot.reply_to(message, message.text)
14
 
15
+ bot.infinity_polling()
16
+ def addition(nombre1, nombre2):
17
+ resultat = nombre1 + nombre2
18
+ return resultat
19
+
20
+
21
+ interface = gr.Interface(fn=addition, inputs=["number", "number"], outputs="number", live=True, title="Calculatrice