svjack's picture
Upload 5 files
03c1af1
raw
history blame
390 Bytes
import requests
def call_zh_en_naive_model(zh_question):
response = requests.post("https://svjack-translate-chinese-to-english.hf.space/run/predict", json={
"data": [
zh_question,
]}).json()
data = response["data"]
if data:
data = data[0]
English_Question = data["English Question"]
else:
English_Question = ""
return English_Question