Ashrafb commited on
Commit
205a48e
·
verified ·
1 Parent(s): 099f569

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -91,6 +91,8 @@ def generate_image(inputs, is_negative, steps, cfg_scale, seed):
91
 
92
 
93
 
 
 
94
  import time
95
 
96
  def get_prompts(prompt_text):
@@ -104,8 +106,8 @@ def get_prompts(prompt_text):
104
  ]
105
 
106
  if prompt_text:
107
- # Use current time as a seed for random choice
108
- random.seed(time.time())
109
  chosen_option = random.choice(options)
110
  return text_gen(f"{prompt_text}, {chosen_option}")
111
  else:
 
91
 
92
 
93
 
94
+
95
+
96
  import time
97
 
98
  def get_prompts(prompt_text):
 
106
  ]
107
 
108
  if prompt_text:
109
+ # Generate timestamp for different prompts
110
+ timestamp = f"{time.time()}"
111
  chosen_option = random.choice(options)
112
  return text_gen(f"{prompt_text}, {chosen_option}")
113
  else: