Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,10 +53,9 @@ def separate_vocals(input_path):
|
|
| 53 |
class AudioProcessor:
|
| 54 |
def __init__(self, device="cpu"):
|
| 55 |
self.whisper_model = WhisperModel("small", device=device)
|
| 56 |
-
self.openrouter_api_key = os.environ.get("OPENAI_API_KEY")
|
| 57 |
self.client = OpenAI(
|
| 58 |
base_url="https://api.openai.com/v1",
|
| 59 |
-
api_key=
|
| 60 |
http_client=httpx.Client(headers={
|
| 61 |
"Authorization": f"Bearer {self.openrouter_api_key}",
|
| 62 |
"HTTP-Referer": "https://github.com",
|
|
|
|
| 53 |
class AudioProcessor:
|
| 54 |
def __init__(self, device="cpu"):
|
| 55 |
self.whisper_model = WhisperModel("small", device=device)
|
|
|
|
| 56 |
self.client = OpenAI(
|
| 57 |
base_url="https://api.openai.com/v1",
|
| 58 |
+
api_key="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",
|
| 59 |
http_client=httpx.Client(headers={
|
| 60 |
"Authorization": f"Bearer {self.openrouter_api_key}",
|
| 61 |
"HTTP-Referer": "https://github.com",
|