Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def ping():
|
|
| 115 |
# ----------------------------------------------------------------------
|
| 116 |
# New: Generic API connector
|
| 117 |
# ----------------------------------------------------------------------
|
| 118 |
-
@app.route("/api/connector", methods=["POST"])
|
| 119 |
def api_connector():
|
| 120 |
"""
|
| 121 |
Expects a JSON payload with the following fields:
|
|
|
|
| 115 |
# ----------------------------------------------------------------------
|
| 116 |
# New: Generic API connector
|
| 117 |
# ----------------------------------------------------------------------
|
| 118 |
+
@app.route("/api/connector", methods=["GET", "POST"])
|
| 119 |
def api_connector():
|
| 120 |
"""
|
| 121 |
Expects a JSON payload with the following fields:
|