Spaces:
Sleeping
Sleeping
Vargock
commited on
Commit
·
fc3f655
1
Parent(s):
65cfd5e
--
Browse files
bot.py
CHANGED
|
@@ -44,7 +44,6 @@ def detect_lang(text: str) -> str:
|
|
| 44 |
|
| 45 |
|
| 46 |
def hf_infer(model: str, text: str):
|
| 47 |
-
"""Call Hugging Face inference API safely."""
|
| 48 |
try:
|
| 49 |
resp = requests.post(
|
| 50 |
f"https://api-inference.huggingface.co/models/{model}",
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
def hf_infer(model: str, text: str):
|
|
|
|
| 47 |
try:
|
| 48 |
resp = requests.post(
|
| 49 |
f"https://api-inference.huggingface.co/models/{model}",
|