Spaces:
Runtime error
Runtime error
feat: Add support for random seed and maximum image size
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client, handle_file
|
|
|
3 |
|
|
|
|
|
4 |
|
5 |
flux_1_schnell_space = "https://black-forest-labs-flux-1-schnell.hf.space"
|
6 |
client = None
|
|
|
1 |
import gradio as gr
|
2 |
from gradio_client import Client, handle_file
|
3 |
+
import numpy as np
|
4 |
|
5 |
+
MAX_SEED = np.iinfo(np.int32).max
|
6 |
+
MAX_IMAGE_SIZE = 2048
|
7 |
|
8 |
flux_1_schnell_space = "https://black-forest-labs-flux-1-schnell.hf.space"
|
9 |
client = None
|