Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -12,7 +12,7 @@ class EndpointHandler:
|
|
| 12 |
def preprocess(self, data):
|
| 13 |
# Preprocesamiento de la entrada
|
| 14 |
if isinstance(data, dict) and "inputs" in data:
|
| 15 |
-
input_text = data["inputs"]
|
| 16 |
else:
|
| 17 |
raise ValueError("Esperando un diccionario con la clave 'inputs'")
|
| 18 |
|
|
|
|
| 12 |
def preprocess(self, data):
|
| 13 |
# Preprocesamiento de la entrada
|
| 14 |
if isinstance(data, dict) and "inputs" in data:
|
| 15 |
+
input_text = "Generate a valid JSON capturing data from this text: " + data["inputs"]
|
| 16 |
else:
|
| 17 |
raise ValueError("Esperando un diccionario con la clave 'inputs'")
|
| 18 |
|