Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,12 @@ import spaces
|
|
3 |
from huggingface_hub import HfApi
|
4 |
|
5 |
@spaces.GPU(duration=60)
|
6 |
-
def generate_image(prompt, negative_prompt="", seed=-
|
7 |
# This function will be called by gr.load(), so we don't need to implement it here
|
8 |
pass
|
9 |
|
10 |
# Load the pre-configured Flux model interface
|
11 |
-
|
12 |
|
13 |
# Create the Gradio interface
|
14 |
with gr.Blocks() as demo:
|
|
|
3 |
from huggingface_hub import HfApi
|
4 |
|
5 |
@spaces.GPU(duration=60)
|
6 |
+
def generate_image(prompt, negative_prompt="", seed=-1, width=512, height=512, guidance_scale=7.5, num_inference_steps=50):
|
7 |
# This function will be called by gr.load(), so we don't need to implement it here
|
8 |
pass
|
9 |
|
10 |
# Load the pre-configured Flux model interface
|
11 |
+
demo = gr.load("GenAIJake/d3xt3r")
|
12 |
|
13 |
# Create the Gradio interface
|
14 |
with gr.Blocks() as demo:
|