File size: 633 Bytes
b058173
 
 
c8bf840
 
a1278e1
 
 
c8bf840
a1278e1
b058173
c8bf840
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr


title="Texto a Imagen con Stable Diffusion 2.0"
description = '<h2 style="text-align:center">Prompt en Español!</h2>'
article = """
El modelo usa: 
- Texto a Imagen [Stable Diffusion 2.0](https://huggingface.co/stabilityai/stable-diffusion-2), 
- Para la traduccion [Helsinki-NLP](https://huggingface.co/Helsinki-NLP) 
\n ... y mucha magia ☺
"""

text_imagen =  gr.Interface.load("models/stabilityai/stable-diffusion-2")
text_translate = gr.Interface.load("models/Helsinki-NLP/opus-mt-es-en")

gr.Series(text_translate, text_imagen, title=title, description = description, article=article).launch(debug=True)