hsuwill000 commited on
Commit
33179dc
·
verified ·
1 Parent(s): 7e241d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -4,9 +4,12 @@ from PIL import Image
4
  import os
5
  import time
6
  import traceback
 
7
 
8
- # Create a Client instance to communicate with the Hugging Face space
9
- client = Client("https://huggingface.co/spaces/hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD")
 
 
10
 
11
  # Counter for image filenames to avoid overwriting
12
  count = 0
@@ -15,6 +18,9 @@ count = 0
15
  def infer_gradio(prompt: str):
16
  global count
17
 
 
 
 
18
  # Prepare the inputs for the prediction
19
  inputs = {
20
  "prompt": prompt,
 
4
  import os
5
  import time
6
  import traceback
7
+ import random
8
 
9
+ repos = [
10
+ "hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD",
11
+ "HelloSun/LCM_Dreamshaper_v7-int8-ov"
12
+ ]
13
 
14
  # Counter for image filenames to avoid overwriting
15
  count = 0
 
18
  def infer_gradio(prompt: str):
19
  global count
20
 
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,