Update main/inference/realtime/realtime.py
Browse files
main/inference/realtime/realtime.py
CHANGED
|
@@ -2,7 +2,6 @@ import os
|
|
| 2 |
import sys
|
| 3 |
import time
|
| 4 |
import torch
|
| 5 |
-
import spaces
|
| 6 |
|
| 7 |
import numpy as np
|
| 8 |
import torch.nn.functional as F
|
|
@@ -490,7 +489,6 @@ class VoiceChanger:
|
|
| 490 |
clicking artifacts during live audio transformation.
|
| 491 |
"""
|
| 492 |
|
| 493 |
-
@spaces.GPU
|
| 494 |
def __init__(
|
| 495 |
self,
|
| 496 |
read_chunk_size,
|
|
@@ -728,7 +726,6 @@ class VoiceChanger:
|
|
| 728 |
if self.record_audio and self.soundfile is not None: self.soundfile.write(audio_output)
|
| 729 |
return audio_output, vol
|
| 730 |
|
| 731 |
-
@spaces.GPU()
|
| 732 |
@torch.no_grad()
|
| 733 |
def on_request(
|
| 734 |
self,
|
|
|
|
| 2 |
import sys
|
| 3 |
import time
|
| 4 |
import torch
|
|
|
|
| 5 |
|
| 6 |
import numpy as np
|
| 7 |
import torch.nn.functional as F
|
|
|
|
| 489 |
clicking artifacts during live audio transformation.
|
| 490 |
"""
|
| 491 |
|
|
|
|
| 492 |
def __init__(
|
| 493 |
self,
|
| 494 |
read_chunk_size,
|
|
|
|
| 726 |
if self.record_audio and self.soundfile is not None: self.soundfile.write(audio_output)
|
| 727 |
return audio_output, vol
|
| 728 |
|
|
|
|
| 729 |
@torch.no_grad()
|
| 730 |
def on_request(
|
| 731 |
self,
|