Lisandro commited on
Commit
1528648
·
1 Parent(s): a60b83b

feat: Add support for random seed and maximum image size

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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