Cristobal299 commited on
Commit
e7ff015
·
verified ·
1 Parent(s): efb2d13

Upload app.py with huggingface_hub

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