Surn commited on
Commit
18c5b15
·
1 Parent(s): 5439141

Add timestamp and update requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -53,6 +53,7 @@ def generate(prompt: str, negprompt: str, seed: int, randomize_seed: bool, profi
53
  "height": 1024,
54
  "guidance_scale": 1.5,
55
  "num_inference_steps": 8,
 
56
  }
57
  with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as metadata_file:
58
  json.dump(metadata, metadata_file)
 
53
  "height": 1024,
54
  "guidance_scale": 1.5,
55
  "num_inference_steps": 8,
56
+ "timestamp": str(datetime.datetime.now()),
57
  }
58
  with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as metadata_file:
59
  json.dump(metadata, metadata_file)
requirements.txt CHANGED
@@ -7,3 +7,4 @@ mutagen
7
  tqdm
8
  torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
9
  torchaudio>=2.0.0,<2.6.2 --extra-index-url https://download.pytorch.org/whl/cu124
 
 
7
  tqdm
8
  torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
9
  torchaudio>=2.0.0,<2.6.2 --extra-index-url https://download.pytorch.org/whl/cu124
10
+ numpy