Omnibus commited on
Commit
11bb3b2
1 Parent(s): b79251b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -2
app.py CHANGED
@@ -38,6 +38,31 @@ models =[
38
  ]
39
  current_model=models[5]
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  def slide_fn(val):
42
  im =(f'tmpim22-{uid}.png')
43
 
@@ -426,8 +451,7 @@ def get_prompts(prompt_text):
426
  return gen
427
 
428
  def gen_im(prompt,model_choice=5,count=1):
429
- out = dif.SendIt()
430
- out1 = out.send_it(prompt,5,count)
431
 
432
  return out1
433
 
 
38
  ]
39
  current_model=models[5]
40
 
41
+ models2=[
42
+ gr.Interface.load(f"models/{models[1]}",live=True,preprocess=True),
43
+ gr.Interface.load(f"models/{models[2]}",live=True,preprocess=True),
44
+ gr.Interface.load(f"models/{models[3]}",live=True,preprocess=True),
45
+ gr.Interface.load(f"models/{models[4]}",live=True,preprocess=True),
46
+ gr.Interface.load(f"models/{models[5]}",live=True,preprocess=True),
47
+ gr.Interface.load(f"models/{models[6]}",live=True,preprocess=True),
48
+ gr.Interface.load(f"models/{models[7]}",live=True,preprocess=True),
49
+ gr.Interface.load(f"models/{models[8]}",live=True,preprocess=True),
50
+ gr.Interface.load(f"models/{models[9]}",live=True,preprocess=True),
51
+ gr.Interface.load(f"models/{models[10]}",live=True,preprocess=True),
52
+ gr.Interface.load(f"models/{models[11]}",live=True,preprocess=True),
53
+ gr.Interface.load(f"models/{models[12]}",live=True,preprocess=True),
54
+ gr.Interface.load(f"models/{models[13]}",live=True,preprocess=True),
55
+ gr.Interface.load(f"models/{models[14]}",live=True,preprocess=True),
56
+ gr.Interface.load(f"models/{models[15]}",live=True,preprocess=True),
57
+ gr.Interface.load(f"models/{models[16]}",live=True,preprocess=True),
58
+ gr.Interface.load(f"models/{models[17]}",live=True,preprocess=True),
59
+ gr.Interface.load(f"models/{models[18]}",live=True,preprocess=True),
60
+ gr.Interface.load(f"models/{models[19]}",live=True,preprocess=True),
61
+ gr.Interface.load(f"models/{models[20]}",live=True,preprocess=True),
62
+
63
+
64
+ ]
65
+
66
  def slide_fn(val):
67
  im =(f'tmpim22-{uid}.png')
68
 
 
451
  return gen
452
 
453
  def gen_im(prompt,model_choice=5,count=1):
454
+ out1 = models2(prompt,model_choices,count)
 
455
 
456
  return out1
457