Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import random
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import torch
|
6 |
-
import spaces
|
7 |
from diffusers import FluxPipeline
|
8 |
from PIL import Image
|
9 |
from diffusers.utils import export_to_gif
|
@@ -31,7 +31,7 @@ def split_image(input_image, num_splits=4):
|
|
31 |
|
32 |
return output_images
|
33 |
|
34 |
-
@spaces.GPU(duration=190)
|
35 |
def predict(prompt, seed=42, randomize_seed=False, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
36 |
prompt_template = f"""
|
37 |
A side by side 4 frame image showing consecutive stills from a looped gif moving from left to right.
|
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import torch
|
6 |
+
# import spaces
|
7 |
from diffusers import FluxPipeline
|
8 |
from PIL import Image
|
9 |
from diffusers.utils import export_to_gif
|
|
|
31 |
|
32 |
return output_images
|
33 |
|
34 |
+
# @spaces.GPU(duration=190)
|
35 |
def predict(prompt, seed=42, randomize_seed=False, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
36 |
prompt_template = f"""
|
37 |
A side by side 4 frame image showing consecutive stills from a looped gif moving from left to right.
|