Spaces:
Runtime error
Runtime error
Commit
·
7ee4d2f
1
Parent(s):
8a42dc8
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
title = "
|
| 4 |
|
| 5 |
tts_examples = [
|
| 6 |
"I love learning machine learning",
|
|
@@ -14,6 +14,12 @@ tts_demo = gr.Interface.load(
|
|
| 14 |
description="Give me something to say!",
|
| 15 |
)
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
stt_demo = gr.Interface.load(
|
| 18 |
"huggingface/facebook/wav2vec2-base-960h",
|
| 19 |
title=None,
|
|
@@ -21,7 +27,7 @@ stt_demo = gr.Interface.load(
|
|
| 21 |
description="Let me try to guess what you're saying!",
|
| 22 |
)
|
| 23 |
|
| 24 |
-
demo = gr.TabbedInterface([tts_demo, stt_demo], ["Text-to-speech", "Speech-to-text"])
|
| 25 |
|
| 26 |
if __name__ == "__main__":
|
| 27 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
title = "Mushroom Gallery"
|
| 4 |
|
| 5 |
tts_examples = [
|
| 6 |
"I love learning machine learning",
|
|
|
|
| 14 |
description="Give me something to say!",
|
| 15 |
)
|
| 16 |
|
| 17 |
+
vision_demo = gr.Interface.load(
|
| 18 |
+
"models/google/vit-base-patch16-224",
|
| 19 |
+
title=None,
|
| 20 |
+
description="Image Classification",
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
stt_demo = gr.Interface.load(
|
| 24 |
"huggingface/facebook/wav2vec2-base-960h",
|
| 25 |
title=None,
|
|
|
|
| 27 |
description="Let me try to guess what you're saying!",
|
| 28 |
)
|
| 29 |
|
| 30 |
+
demo = gr.TabbedInterface([vision_demo, tts_demo, stt_demo], ["Image Classification", "Text-to-speech", "Speech-to-text"])
|
| 31 |
|
| 32 |
if __name__ == "__main__":
|
| 33 |
demo.launch()
|