cody82 commited on
Commit
4803a6e
·
verified ·
1 Parent(s): c9404c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ chat = gr.ChatInterface(
51
  )
52
 
53
  ### ✅ API маршрут (Gradio 5+)
54
- @gr.route("/ask", methods=["POST"])
55
  def ask_api(question: str):
56
  return {"answer": respond(question)}
57
 
 
51
  )
52
 
53
  ### ✅ API маршрут (Gradio 5+)
54
+ @gr.routes("/ask", methods=["POST"])
55
  def ask_api(question: str):
56
  return {"answer": respond(question)}
57