delete unused prints and imports

This commit is contained in:
SevaSk 2023-05-09 10:29:19 -04:00
parent 2a5efca9d6
commit 8cb45bc023
2 changed files with 0 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import numpy as np
import soundcard as sc
import whisper
import torch
import wave
@ -18,7 +17,6 @@ class AudioTranscriber:
audio_data = (audio_data * (2**15 - 1)).astype(np.int16)
wav_file.writeframes(audio_data.tobytes())
result = self.audio_model.transcribe(f'temp_{id(self)}.wav', fp16=torch.cuda.is_available())
print(torch.cuda.is_available())
text = result['text'].strip()
return text

View File

@ -1,7 +1,6 @@
import openai
from keys import OPENAI_API_KEY
from prompts import create_prompt, INITIAL_RESPONSE
import time
openai.api_key = OPENAI_API_KEY