- implement a presentable working version of translator_Server Reviewed-on: https://gitea.pstruebi.xyz/auracaster/multilang-translator-local/pulls/3
9 lines
236 B
Python
9 lines
236 B
Python
import requests
|
|
import time
|
|
|
|
if __name__ == '__main__':
|
|
# get the group state every 0.5s
|
|
while True:
|
|
response = requests.get('http://localhost:7999/groups/0/state')
|
|
print(response.json())
|
|
time.sleep(0.5) |