hsuwill000 commited on
Commit
c248483
·
verified ·
1 Parent(s): 3144ba6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,6 +5,7 @@ import os
5
  import time
6
  import traceback
7
  import random
 
8
 
9
  repos = [
10
  "hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD",
@@ -17,10 +18,10 @@ count = 0
17
  # Gradio Interface Function to handle image generation
18
  def infer_gradio(prompt: str):
19
  global count
20
- random.seed()
21
  # Create a Client instance to communicate with the Hugging Face space
22
  client = Client(random.choice(repos))
23
-
24
  # Prepare the inputs for the prediction
25
  inputs = {
26
  "prompt": prompt,
 
5
  import time
6
  import traceback
7
  import random
8
+ import time
9
 
10
  repos = [
11
  "hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD",
 
18
  # Gradio Interface Function to handle image generation
19
  def infer_gradio(prompt: str):
20
  global count
21
+ random.seed(time.time())
22
  # Create a Client instance to communicate with the Hugging Face space
23
  client = Client(random.choice(repos))
24
+
25
  # Prepare the inputs for the prediction
26
  inputs = {
27
  "prompt": prompt,