Update screen_processor.py
This commit is contained in:
1 parent
23af0e5d05
commit
57984edc9a
1 file changed
+2
-2
@@ -286,7 +286,7 @@ class _VisionSession:
|
|||||||
tg.create_task(self._recv_loop())
|
tg.create_task(self._recv_loop())
|
||||||
tg.create_task(self._play_loop())
|
tg.create_task(self._play_loop())
|
||||||
|
|
||||||
except* Exception as eg:
|
except Exception as eg:
|
||||||
for exc in eg.exceptions:
|
for exc in eg.exceptions:
|
||||||
print(f"[Vision] ⚠️ Session error: {exc}")
|
print(f"[Vision] ⚠️ Session error: {exc}")
|
||||||
finally:
|
finally:
|
||||||
@@ -439,4 +439,4 @@ if __name__ == "__main__":
|
|||||||
ok = screen_process({"angle": mode, "text": q})
|
ok = screen_process({"angle": mode, "text": q})
|
||||||
print(f"Queued in {time.perf_counter()-t1:.3f}s — waiting for audio...")
|
print(f"Queued in {time.perf_counter()-t1:.3f}s — waiting for audio...")
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
print("Done." if ok else "Failed.")
|
print("Done." if ok else "Failed.")
|
||||||
Reference in new issue
Block a user