Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,6 @@ import gradio as gr
|
|
17 |
import re
|
18 |
import torch
|
19 |
from torch import autocast
|
20 |
-
from PIL import Image
|
21 |
import os
|
22 |
|
23 |
# Array with song cover art styles
|
@@ -48,7 +47,7 @@ checkpoint = 'wvangils/GPT-Medium-Beatles-Lyrics-finetuned-newlyrics'
|
|
48 |
title_generator = pipeline('summarization', model='czearing/story-to-title')
|
49 |
lyrics_generator = pipeline("text-generation", model=checkpoint)
|
50 |
# For the image generator we use stable diffusion from an existing HuggingFace space
|
51 |
-
stable_diffusion = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion
|
52 |
|
53 |
# Create 4 images for the given prompt and receive the first one
|
54 |
# This function uses an existing HuggingFace space where the number of created images cannot be modified
|
|
|
17 |
import re
|
18 |
import torch
|
19 |
from torch import autocast
|
|
|
20 |
import os
|
21 |
|
22 |
# Array with song cover art styles
|
|
|
47 |
title_generator = pipeline('summarization', model='czearing/story-to-title')
|
48 |
lyrics_generator = pipeline("text-generation", model=checkpoint)
|
49 |
# For the image generator we use stable diffusion from an existing HuggingFace space
|
50 |
+
stable_diffusion = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion")
|
51 |
|
52 |
# Create 4 images for the given prompt and receive the first one
|
53 |
# This function uses an existing HuggingFace space where the number of created images cannot be modified
|