Spaces:
Sleeping
Sleeping
Update app.py
Browse files23 unmodified lines2425262728293023 unmodified linesopenai.api_key = "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"device = 0 if torch.cuda.is_available() else "cpu"res_format = 'srt'pipe = openai.Audio.transcribe(model="whisper-1", file=open('file', 'rb'), response_format=res_format, prompt='请使用书面语')text = transcript23 unmodified lines2425262728293023 unmodified linesopenai.api_key = "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"device = 0 if torch.cuda.is_available() else "cpu"res_format = 'srt'pipe = openai.Audio.transcribe(model="whisper-1", file=file, response_format=res_format, prompt='请使用书面语')text = transcript
app.py+1-1