MAZALA2024 commited on
Commit
96bf186
·
verified ·
1 Parent(s): 55e5875

Update rvc_service.py

Browse files
Files changed (1) hide show
  1. rvc_service.py +10 -4
rvc_service.py CHANGED
@@ -113,10 +113,16 @@ class RVCService:
113
  def within_operating_hours(self) -> bool:
114
  """Check if current time is within operating hours"""
115
  current_time = datetime.now().time()
116
- if self.start_time <= self.end_time:
117
- return self.start_time <= current_time <= self.end_time
118
- else: # Handles overnight operation (e.g., 9 AM to 12 AM)
119
- return current_time >= self.start_time or current_time <= self.end_time
 
 
 
 
 
 
120
 
121
  async def process_audio(self, job: JobRequest) -> Optional[np.ndarray]:
122
  """Process a single audio conversion job"""
 
113
  def within_operating_hours(self) -> bool:
114
  """Check if current time is within operating hours"""
115
  current_time = datetime.now().time()
116
+
117
+ # For testing/development, always return True
118
+ # TODO: Implement proper operating hours check for production
119
+ return True
120
+
121
+ # When ready for production, uncomment this:
122
+ # if self.start_time <= self.end_time:
123
+ # return self.start_time <= current_time <= self.end_time
124
+ # else: # Handles overnight operation (e.g., 9 AM to 12 AM)
125
+ # return current_time >= self.start_time or current_time <= self.end_time
126
 
127
  async def process_audio(self, job: JobRequest) -> Optional[np.ndarray]:
128
  """Process a single audio conversion job"""