Spaces:
Build error
Build error
Remove MockRecorder
Browse files- flet_app.py +0 -22
flet_app.py
CHANGED
|
@@ -12,26 +12,6 @@ logging.basicConfig(level=logging.INFO)
|
|
| 12 |
logger = logging.getLogger(__name__)
|
| 13 |
|
| 14 |
|
| 15 |
-
class MockVideoRecorder:
|
| 16 |
-
def __init__(self):
|
| 17 |
-
self._is_recording = False
|
| 18 |
-
self._file_path = None
|
| 19 |
-
|
| 20 |
-
def start_recording(self, file_path):
|
| 21 |
-
self._is_recording = True
|
| 22 |
-
self._file_path = file_path
|
| 23 |
-
print(f"Started video recording: {file_path}")
|
| 24 |
-
|
| 25 |
-
def stop_recording(self):
|
| 26 |
-
self._is_recording = False
|
| 27 |
-
print(f"Stopped video recording: {self._file_path}")
|
| 28 |
-
self._file_path = None
|
| 29 |
-
|
| 30 |
-
def is_recording(self):
|
| 31 |
-
return self._is_recording
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
class EmpathyConfig:
|
| 36 |
INITIAL_EMPATHY = 0.5
|
| 37 |
INITIAL_EMPATHY_PAWN = 0.1
|
|
@@ -610,8 +590,6 @@ class ChessView(ft.Container):
|
|
| 610 |
self.piece_speak_velocity_bar = self.speak_velocity_bar()
|
| 611 |
self.player_speak_velocity_bar = self.speak_velocity_bar()
|
| 612 |
|
| 613 |
-
self.video_recorder = MockVideoRecorder()
|
| 614 |
-
|
| 615 |
self.language_selector = ft.Row(
|
| 616 |
[self.en_button, self.es_button],
|
| 617 |
alignment=ft.MainAxisAlignment.CENTER
|
|
|
|
| 12 |
logger = logging.getLogger(__name__)
|
| 13 |
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
class EmpathyConfig:
|
| 16 |
INITIAL_EMPATHY = 0.5
|
| 17 |
INITIAL_EMPATHY_PAWN = 0.1
|
|
|
|
| 590 |
self.piece_speak_velocity_bar = self.speak_velocity_bar()
|
| 591 |
self.player_speak_velocity_bar = self.speak_velocity_bar()
|
| 592 |
|
|
|
|
|
|
|
| 593 |
self.language_selector = ft.Row(
|
| 594 |
[self.en_button, self.es_button],
|
| 595 |
alignment=ft.MainAxisAlignment.CENTER
|