Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,10 @@ def separate_vocals(input_path):
|
|
| 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=
|
| 59 |
http_client=httpx.Client(headers={
|
| 60 |
"Authorization": f"Bearer {self.openrouter_api_key}",
|
| 61 |
"HTTP-Referer": "https://github.com",
|
|
@@ -355,4 +356,4 @@ with gr.Blocks() as demo:
|
|
| 355 |
outputs=output_video
|
| 356 |
)
|
| 357 |
|
| 358 |
-
demo.queue().launch(server_name="0.0.0.0",ssr_mode=False,
|
|
|
|
| 53 |
class AudioProcessor:
|
| 54 |
def __init__(self, device="cpu"):
|
| 55 |
self.whisper_model = WhisperModel("small", device=device)
|
| 56 |
+
self.openrouter_api_key="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"
|
| 57 |
self.client = OpenAI(
|
| 58 |
base_url="https://api.openai.com/v1",
|
| 59 |
+
api_key=self.openrouter_api_key,
|
| 60 |
http_client=httpx.Client(headers={
|
| 61 |
"Authorization": f"Bearer {self.openrouter_api_key}",
|
| 62 |
"HTTP-Referer": "https://github.com",
|
|
|
|
| 356 |
outputs=output_video
|
| 357 |
)
|
| 358 |
|
| 359 |
+
demo.queue().launch(server_name="0.0.0.0",ssr_mode=False, debug=True)
|