Spaces:
Runtime error
Runtime error
Commit ·
dc19130
1
Parent(s): 441d765
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,23 +18,13 @@ demo = gr.load(
|
|
| 18 |
if __name__ == "__main__":
|
| 19 |
demo.launch()
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
title = "gpt2-xl"
|
| 24 |
|
| 25 |
-
|
| 26 |
-
["The tower is 324 metres (1,063 ft) tall,"],
|
| 27 |
-
["The Moon's orbit around Earth has"],
|
| 28 |
-
["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
|
| 29 |
-
]
|
| 30 |
|
| 31 |
-
demo = gr.load(
|
| 32 |
-
"huggingface/gpt2-xl",
|
| 33 |
-
inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
|
| 34 |
-
title=title,
|
| 35 |
-
examples=examples,
|
| 36 |
-
)
|
| 37 |
|
| 38 |
-
if __name__ == "__main__":
|
| 39 |
-
demo.launch()
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
if __name__ == "__main__":
|
| 19 |
demo.launch()
|
| 20 |
|
| 21 |
+
!pip install pyTelegramBotAPI
|
| 22 |
+
import telebot
|
|
|
|
| 23 |
|
| 24 |
+
bot = telebot.TeleBot('6701619783:AAFE384ILY-KADTXQryB0mLqwh-Svwu2lyE')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
@bot.message_handler(commands=['start'])
|
| 29 |
+
def welcome_message(message):
|
| 30 |
+
bot.reply_to(message,"salam noshinam")
|