Spaces:
Sleeping
Sleeping
Update test_overrides.py
Browse files- test_overrides.py +6 -18
test_overrides.py
CHANGED
|
@@ -1,21 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
# end_parameters = _get_param_examples(
|
| 9 |
-
# endpoints['named_endpoints'][api_name]['parameters']
|
| 10 |
-
# )
|
| 11 |
-
# # has unnamed endpoint
|
| 12 |
-
# else:
|
| 13 |
-
# # endpoint index is the first character
|
| 14 |
-
# fn_index = int(HF_SPACES[model]['function'])
|
| 15 |
-
|
| 16 |
-
# end_parameters = _get_param_examples(
|
| 17 |
-
# endpoints['unnamed_endpoints'][str(fn_index)]['parameters']
|
| 18 |
-
# )
|
| 19 |
|
| 20 |
def _get_param_examples(parameters):
|
| 21 |
# named or unnamed parameters
|
|
|
|
| 1 |
+
OVERRIDE_INPUTS = {
|
| 2 |
+
'Pendrokar/xVASynth-TTS': {
|
| 3 |
+
1: 'x_ex04', #fine-tuned voice model name
|
| 4 |
+
3: 1.0, #pacing/duration - Gradio Slider issue: takes min. rather than value
|
| 5 |
+
},
|
| 6 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def _get_param_examples(parameters):
|
| 9 |
# named or unnamed parameters
|