Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,22 +35,22 @@ def text2speech(model, text, voice):
|
|
35 |
|
36 |
return speech["sampling_rate"], audio_data_16bit
|
37 |
|
38 |
-
radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier")
|
39 |
tab1 = gr.Interface(
|
40 |
fn=guessanImage,
|
41 |
inputs=[radio1, gr.Image(type="pil")],
|
42 |
outputs=["text"],
|
43 |
)
|
44 |
|
45 |
-
radio2 = gr.Radio(["nateraw/vit-age-classifier"], label="Select an Age Classifier", info="Age Classifier")
|
46 |
tab2 = gr.Interface(
|
47 |
fn=guessanAge,
|
48 |
inputs=[radio2, gr.Image(type="pil")],
|
49 |
outputs=["text"],
|
50 |
)
|
51 |
|
52 |
-
radio3 = gr.Radio(["microsoft/speecht5_tts"], label="Select an tts", info="Age Classifier")
|
53 |
-
radio3_1 = gr.Radio([("Scottish male (awb)", 0), ("US male (bdl)", 1138), ("US female (clb)", 2271), ("Canadian male (jmk)",3403), ("Indian male (ksp)", 4535), ("US male (rms)", 5667), (6799, "US female (slt)")], value=
|
54 |
tab3 = gr.Interface(
|
55 |
fn=text2speech,
|
56 |
inputs=[radio3, "text", radio3_1],
|
|
|
35 |
|
36 |
return speech["sampling_rate"], audio_data_16bit
|
37 |
|
38 |
+
radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], value="microsoft/resnet-50", label="Select a Classifier", info="Image Classifier")
|
39 |
tab1 = gr.Interface(
|
40 |
fn=guessanImage,
|
41 |
inputs=[radio1, gr.Image(type="pil")],
|
42 |
outputs=["text"],
|
43 |
)
|
44 |
|
45 |
+
radio2 = gr.Radio(["nateraw/vit-age-classifier"], value="nateraw/vit-age-classifier", label="Select an Age Classifier", info="Age Classifier")
|
46 |
tab2 = gr.Interface(
|
47 |
fn=guessanAge,
|
48 |
inputs=[radio2, gr.Image(type="pil")],
|
49 |
outputs=["text"],
|
50 |
)
|
51 |
|
52 |
+
radio3 = gr.Radio(["microsoft/speecht5_tts"], value="microsoft/speecht5_tts", label="Select an tts", info="Age Classifier")
|
53 |
+
radio3_1 = gr.Radio([("Scottish male (awb)", 0), ("US male (bdl)", 1138), ("US female (clb)", 2271), ("Canadian male (jmk)",3403), ("Indian male (ksp)", 4535), ("US male (rms)", 5667), (6799, "US female (slt)")], value=4535)
|
54 |
tab3 = gr.Interface(
|
55 |
fn=text2speech,
|
56 |
inputs=[radio3, "text", radio3_1],
|