Spaces:
Running
Running
Update app_tsukasa_remote.py
Browse files- app_tsukasa_remote.py +6 -1
app_tsukasa_remote.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
INTROTXT = """#
|
| 2 |
Repo -> [Hugging Face - 🤗](https://huggingface.co/Respair/Tsukasa_Speech)
|
| 3 |
Use only ,!.??、。! symbols and nothing else (also instead of three dots, use a comma). <br>
|
| 4 |
-
This space is running on CPU, expect some latency. <br>
|
| 5 |
This model is only geared towards natural Speech; it will not properly generate non-speech sounds (crying, gasping, moaning, NSFW +18, laughter etc.) or Speech with weird intonation. <br>
|
| 6 |
Enjoy!
|
| 7 |
"""
|
| 8 |
|
|
|
|
| 9 |
import gradio as gr
|
| 10 |
import random
|
| 11 |
import os
|
|
@@ -13,6 +14,10 @@ import pickle
|
|
| 13 |
from gradio_client import Client
|
| 14 |
# client = Client(os.environ['src'])
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
client = Client(os.environ['host'], hf_token=os.environ['key'])
|
| 17 |
|
| 18 |
|
|
|
|
| 1 |
INTROTXT = """#
|
| 2 |
Repo -> [Hugging Face - 🤗](https://huggingface.co/Respair/Tsukasa_Speech)
|
| 3 |
Use only ,!.??、。! symbols and nothing else (also instead of three dots, use a comma). <br>
|
| 4 |
+
This space is running on CPU (ZERO cpus), expect some latency. <br>
|
| 5 |
This model is only geared towards natural Speech; it will not properly generate non-speech sounds (crying, gasping, moaning, NSFW +18, laughter etc.) or Speech with weird intonation. <br>
|
| 6 |
Enjoy!
|
| 7 |
"""
|
| 8 |
|
| 9 |
+
import spaces
|
| 10 |
import gradio as gr
|
| 11 |
import random
|
| 12 |
import os
|
|
|
|
| 14 |
from gradio_client import Client
|
| 15 |
# client = Client(os.environ['src'])
|
| 16 |
|
| 17 |
+
@spaces.GPU
|
| 18 |
+
def dummy():
|
| 19 |
+
return
|
| 20 |
+
|
| 21 |
client = Client(os.environ['host'], hf_token=os.environ['key'])
|
| 22 |
|
| 23 |
|