IlyasMoutawwakil HF staff commited on
Commit
1556b2f
1 Parent(s): e2023ab

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -34,4 +34,4 @@ class EndpointHandler:
34
  documents = [Document.from_dict(document) for document in documents]
35
  return self.document_embedder.run(documents)
36
 
37
- raise ValueError("Expected either text or documents")
 
34
  documents = [Document.from_dict(document) for document in documents]
35
  return self.document_embedder.run(documents)
36
 
37
+ return {"error": "Wrong inputs"}