Spaces:
Build error
Build error
File size: 731 Bytes
b11dbf8 7590549 b11dbf8 b6fae2d b11dbf8 66f15df 988a76d b11dbf8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import gradio as gr
from transformers import pipeline
# Load the Stable Diffusion TTS model
tts_demo = gr.Interface.load(
"models/runwayml/stable-diffusion-v1-5",
title=None,
description="Give me something to paint!"
)
# Load the text-to-image prompt generator model
stt_demo = gr.Interface.load(
"models/succinctly/text2image-prompt-generator",
title=None,
description="Let me try to guess what you're saying!"
)
# Load the image classification model
image_classification = pipeline("image-classification")
# Create the tabbed interface
demo = gr.TabbedInterface([tts_demo, stt_demo, gr.Interface.from_pipeline(image_classification)], ["Paint", "Text", "Image"])
# Launch the interface
demo.launch()
|