salomonsky commited on
Commit
e6e9673
1 Parent(s): 7e94dda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -11,7 +11,10 @@ except:
11
  st.error("Error al cargar el archivo de configuración.")
12
  credentials = {"username": "", "password": ""}
13
 
14
- MAX_SEED, client, DATA_PATH, PREDEFINED_SEED = np.iinfo(np.int32).max, AsyncInferenceClient(), Path("./data"), random.randint(0, MAX_SEED)
 
 
 
15
  DATA_PATH.mkdir(exist_ok=True)
16
 
17
  async def generate_image(prompt, width, height, seed, model_name):
@@ -131,4 +134,4 @@ def main():
131
  st.video(str(video_path), format="video/mp4")
132
 
133
  if __name__ == "__main__":
134
- main()
 
11
  st.error("Error al cargar el archivo de configuración.")
12
  credentials = {"username": "", "password": ""}
13
 
14
+ MAX_SEED = np.iinfo(np.int32).max
15
+ client = AsyncInferenceClient()
16
+ DATA_PATH = Path("./data")
17
+ PREDEFINED_SEED = random.randint(0, MAX_SEED)
18
  DATA_PATH.mkdir(exist_ok=True)
19
 
20
  async def generate_image(prompt, width, height, seed, model_name):
 
134
  st.video(str(video_path), format="video/mp4")
135
 
136
  if __name__ == "__main__":
137
+ main()