Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,8 @@ import telebot
|
|
4 |
import nest_asyncio
|
5 |
from g4f import Provider, models
|
6 |
from langchain.llms.base import LLM
|
|
|
|
|
7 |
|
8 |
from langchain_g4f import G4FLLM
|
9 |
from gradio_client import Client
|
@@ -12,7 +14,7 @@ from gradio_client import Client
|
|
12 |
client = Client("https://docfile-lllz.hf.space/--replicas/jwf5g/")
|
13 |
|
14 |
nest_asyncio.apply()
|
15 |
-
bot = telebot.TeleBot(
|
16 |
|
17 |
@bot.message_handler(commands=['start', 'help'])
|
18 |
def send_welcome(message):
|
|
|
4 |
import nest_asyncio
|
5 |
from g4f import Provider, models
|
6 |
from langchain.llms.base import LLM
|
7 |
+
import os
|
8 |
+
token=os.environ.get("TOKEN")
|
9 |
|
10 |
from langchain_g4f import G4FLLM
|
11 |
from gradio_client import Client
|
|
|
14 |
client = Client("https://docfile-lllz.hf.space/--replicas/jwf5g/")
|
15 |
|
16 |
nest_asyncio.apply()
|
17 |
+
bot = telebot.TeleBot(token)
|
18 |
|
19 |
@bot.message_handler(commands=['start', 'help'])
|
20 |
def send_welcome(message):
|