Spaces:
Runtime error
Runtime error
junhyouk lee
commited on
Commit
·
d171db8
1
Parent(s):
54fb9ea
cache example is false
Browse files
app.py
CHANGED
|
@@ -47,7 +47,6 @@ class GradioApp:
|
|
| 47 |
tone = torch.LongTensor(tone)
|
| 48 |
return text_norm, tone, phones
|
| 49 |
|
| 50 |
-
@torch.no_grad()
|
| 51 |
def inference(self, text, speaker_id_val, seed, scope_shift, duration):
|
| 52 |
seed = int(seed)
|
| 53 |
scope_shift = int(scope_shift)
|
|
@@ -101,6 +100,7 @@ class GradioApp:
|
|
| 101 |
title=title,
|
| 102 |
description=description,
|
| 103 |
article=article,
|
|
|
|
| 104 |
examples=examples,
|
| 105 |
)
|
| 106 |
|
|
|
|
| 47 |
tone = torch.LongTensor(tone)
|
| 48 |
return text_norm, tone, phones
|
| 49 |
|
|
|
|
| 50 |
def inference(self, text, speaker_id_val, seed, scope_shift, duration):
|
| 51 |
seed = int(seed)
|
| 52 |
scope_shift = int(scope_shift)
|
|
|
|
| 100 |
title=title,
|
| 101 |
description=description,
|
| 102 |
article=article,
|
| 103 |
+
cache_examples=False,
|
| 104 |
examples=examples,
|
| 105 |
)
|
| 106 |
|