Spaces:
Sleeping
Sleeping
Commit
•
e055ee5
1
Parent(s):
0ceab50
Refactor
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -30,7 +30,7 @@ model = ParlerTTSForConditionalGeneration.from_pretrained(
|
|
30 |
client = InferenceClient()
|
31 |
|
32 |
description_tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
33 |
-
prompt_tokenizer = AutoTokenizer.from_pretrained(repo_id
|
34 |
feature_extractor = AutoFeatureExtractor.from_pretrained(repo_id)
|
35 |
|
36 |
SAMPLE_RATE = feature_extractor.sampling_rate
|
@@ -119,7 +119,7 @@ with gr.Blocks() as block:
|
|
119 |
with gr.Group():
|
120 |
with gr.Row():
|
121 |
subject = gr.Dropdown(value="Princess", choices=["Prince", "Princess", "Dog", "Cat"], label="Subject")
|
122 |
-
setting = gr.Dropdown(value="Forest", choices=["Forest", "Kingdom", "Jungle", "Underwater"], label="Setting")
|
123 |
with gr.Row():
|
124 |
run_button = gr.Button("Generate Story", variant="primary")
|
125 |
with gr.Row():
|
|
|
30 |
client = InferenceClient()
|
31 |
|
32 |
description_tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
33 |
+
prompt_tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
34 |
feature_extractor = AutoFeatureExtractor.from_pretrained(repo_id)
|
35 |
|
36 |
SAMPLE_RATE = feature_extractor.sampling_rate
|
|
|
119 |
with gr.Group():
|
120 |
with gr.Row():
|
121 |
subject = gr.Dropdown(value="Princess", choices=["Prince", "Princess", "Dog", "Cat"], label="Subject")
|
122 |
+
setting = gr.Dropdown(value="Forest", choices=["Forest", "Kingdom", "Jungle", "Underwater", "Pirate Ship"], label="Setting")
|
123 |
with gr.Row():
|
124 |
run_button = gr.Button("Generate Story", variant="primary")
|
125 |
with gr.Row():
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
https://gradio-builds.s3.amazonaws.com/streaming-5.0/
|
2 |
git+https://github.com/huggingface/parler-tts.git
|
3 |
accelerate
|
4 |
nltk
|
|
|
1 |
+
https://gradio-builds.s3.amazonaws.com/streaming-5.0/4ec3bed7a2e6550541332be8bf2d4baa3e876c1f/gradio-4.40.0-py3-none-any.whl
|
2 |
git+https://github.com/huggingface/parler-tts.git
|
3 |
accelerate
|
4 |
nltk
|