Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,15 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
iface.launch()
|
|
|
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
+
from diffusers import DiffusionPipeline
|
| 6 |
+
def jeu():
|
| 7 |
+
|
| 8 |
+
pipeline = DiffusionPipeline.from_pretrained("stablediffusionapi/anything-v5")
|
| 9 |
+
pipeline.load_lora_weights("Kev09/Gojo")
|
| 10 |
|
| 11 |
+
image = pipeline("A pokemon with blue eyes").images[0]
|
| 12 |
+
img=gr.Image(image)
|
| 13 |
+
return img
|
| 14 |
+
|
| 15 |
+
iface = gr.Interface(fn=jeu, inputs="text", outputs="audio")
|
| 16 |
iface.launch()
|