Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ chat = gr.ChatInterface(
|
|
51 |
)
|
52 |
|
53 |
### ✅ API маршрут (Gradio 5+)
|
54 |
-
@gr.
|
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 |
|