nsfwalex commited on
Commit
39455df
1 Parent(s): 33bbf51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import os
4
  import random
5
  import json
 
6
  import uuid
7
  from PIL import Image
8
  from huggingface_hub import snapshot_download
@@ -18,6 +19,7 @@ import torch
18
  from diffusers import DiffusionPipeline
19
  import importlib
20
 
 
21
  MAX_SEED = 12211231
22
  CACHE_EXAMPLES = "1"
23
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4192"))
 
3
  import os
4
  import random
5
  import json
6
+ import time
7
  import uuid
8
  from PIL import Image
9
  from huggingface_hub import snapshot_download
 
19
  from diffusers import DiffusionPipeline
20
  import importlib
21
 
22
+ random.seed(time.time())
23
  MAX_SEED = 12211231
24
  CACHE_EXAMPLES = "1"
25
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4192"))