Spaces:
Runtime error
Runtime error
import gradio as gr | |
title = "Mushroom Gallery" | |
tts_examples = [ | |
"I love learning machine learning", | |
"How do you do?", | |
] | |
tts_demo = gr.Interface.load( | |
"huggingface/facebook/fastspeech2-en-ljspeech", | |
title=None, | |
examples=tts_examples, | |
description="Give me something to say!", | |
) | |
vision_demo = gr.Interface.load( | |
"models/google/vit-base-patch16-224", | |
title=None, | |
description="Vision Transformer", | |
) | |
chatgpt3_demo = gr.Interface.load( | |
"spaces/mushroomsolutions/chatgpt-3", | |
title=None, | |
description="Chat GPT3", | |
) | |
stt_demo = gr.Interface.load( | |
"huggingface/facebook/wav2vec2-base-960h", | |
title=None, | |
inputs="mic", | |
description="Let me try to guess what you're saying!", | |
) | |
with gr.Blocks() as demo: | |
gr.Markdown("<h2>Welcome to Mushrooom Solutions - AI ML Showcase</h2>") | |
gr.TabbedInterface([vision_demo, chatgpt3_demo, tts_demo, stt_demo], ["Image Classification", "Chat GPT3", "Text-to-speech", "Speech-to-text"]) | |
if __name__ == "__main__": | |
demo.launch() |