Spaces:
Sleeping
Sleeping
inoki-giskard
commited on
Commit
•
6dbdec2
1
Parent(s):
b709c21
Remove tailing spaces
Browse files- text_classification.py +1 -1
text_classification.py
CHANGED
@@ -99,7 +99,7 @@ def hf_inference_api(model_id, hf_token, payload):
|
|
99 |
if not hasattr(response, "status_code") or response.status_code != 200:
|
100 |
logger.warning(f"Request to inference API returns {response}")
|
101 |
return response.json()
|
102 |
-
except Exception:
|
103 |
return {"error": response.content}
|
104 |
|
105 |
def preload_hf_inference_api(model_id):
|
|
|
99 |
if not hasattr(response, "status_code") or response.status_code != 200:
|
100 |
logger.warning(f"Request to inference API returns {response}")
|
101 |
return response.json()
|
102 |
+
except Exception:
|
103 |
return {"error": response.content}
|
104 |
|
105 |
def preload_hf_inference_api(model_id):
|