Ashrafb commited on
Commit
bd2f29d
1 Parent(s): f23e47e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -107,12 +107,12 @@ def get_prompts(prompt_text):
107
 
108
  if prompt_text:
109
  # Generate timestamp for different prompts
110
- timestamp = f"{time.time()}"
111
  chosen_option = random.choice(options)
112
- # Combine prompt text with chosen option
113
- prompt_with_option = f"{prompt_text}, {chosen_option}"
114
- # Use prompt text with option for generating prompts
115
- return text_gen(prompt_with_option)
116
  else:
117
  return text_gen("")
118
 
 
107
 
108
  if prompt_text:
109
  # Generate timestamp for different prompts
110
+ timestamp = str(time.time()).replace(".", "")
111
  chosen_option = random.choice(options)
112
+ # Combine prompt text with chosen option and timestamp
113
+ prompt_with_option_and_timestamp = f"{prompt_text}, {chosen_option} - {timestamp}"
114
+ # Use prompt text with option and timestamp for generating prompts
115
+ return text_gen(prompt_with_option_and_timestamp.replace(timestamp, ""))
116
  else:
117
  return text_gen("")
118