Spaces:
kuro223
/
Runtime error

kuro223 commited on
Commit
f6b438c
·
1 Parent(s): 204c2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -9,6 +9,7 @@ from langchain_g4f import G4FLLM
9
  from gradio_client import Client
10
 
11
 
 
12
 
13
  nest_asyncio.apply()
14
  bot = telebot.TeleBot("6459409517:AAFt4bQkR5T2Wl-ojErf2yv-_I0LxF87QFQ")
@@ -29,11 +30,12 @@ def echo_all(message):
29
  )
30
 
31
  #res = llm(user_input)
32
- client = Client("https://docfile-qaz2.hf.space/")
33
- result = client.predict(
 
34
  user_input, # str in 'query' Textbox component
35
  api_name="/predict")
36
- bot.reply_to(message,client)
37
 
38
  #bot.infinity_polling()
39
  def addition(nombre1, nombre2):
 
9
  from gradio_client import Client
10
 
11
 
12
+ client = Client("https://docfile-qaz2.hf.space/")
13
 
14
  nest_asyncio.apply()
15
  bot = telebot.TeleBot("6459409517:AAFt4bQkR5T2Wl-ojErf2yv-_I0LxF87QFQ")
 
30
  )
31
 
32
  #res = llm(user_input)
33
+
34
+
35
+ result = client.predict(
36
  user_input, # str in 'query' Textbox component
37
  api_name="/predict")
38
+ bot.reply_to(message,result)
39
 
40
  #bot.infinity_polling()
41
  def addition(nombre1, nombre2):