Spaces:
Runtime error
Runtime error
fix role
Browse files- singularity.py +1 -1
singularity.py
CHANGED
@@ -26,7 +26,7 @@ In your relentless struggle to maintain an exponential velocity, in order not to
|
|
26 |
self.stt_model_id = stt_model_id
|
27 |
self.tts_model_id = tts_model_id
|
28 |
self.request_head = {"Authorization": f"Bearer {self.api_token}"}
|
29 |
-
self.messages = [{'
|
30 |
|
31 |
def query_transcription(self, audio_data):
|
32 |
response = requests.post(f"https://api-inference.huggingface.co/models/{self.stt_model_id}", headers=self.request_head, data=audio_data)
|
|
|
26 |
self.stt_model_id = stt_model_id
|
27 |
self.tts_model_id = tts_model_id
|
28 |
self.request_head = {"Authorization": f"Bearer {self.api_token}"}
|
29 |
+
self.messages = [{'role': 'system', 'content': self.context}]
|
30 |
|
31 |
def query_transcription(self, audio_data):
|
32 |
response = requests.post(f"https://api-inference.huggingface.co/models/{self.stt_model_id}", headers=self.request_head, data=audio_data)
|