response_data += stream.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 13: unexpected end of data
import time
import threading
def start_stop():
while not current_bool.is_set():
time.sleep(1)
print("Цикл все еще работает")
current_bool = threading.Event() # Создание объекта Event
threading.Thread(target=start_stop).start()
time.sleep(3)
current_bool.set()
from fastapi import FastAPI