Spaces:
kuro223
/
Runtime error

kuro223 commited on
Commit
aa7490c
·
1 Parent(s): 06ca688

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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("6370986373:AAHPCS_9qlfSYdDazJ8GjLkSjxxVMzYnNnE")
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):