| import requests | |
| def call_entity_property_extract(zh_question): | |
| response = requests.post("https://svjack-entity-property-extractor-zh.hf.space/run/predict", json={ | |
| "data": [ | |
| zh_question, | |
| ]}).json() | |
| data = response["data"] | |
| if data: | |
| data = data[0] | |
| pass | |
| else: | |
| pass | |
| return data | |