pikto commited on
Commit
f067a19
·
1 Parent(s): 0ddbc62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -3,7 +3,16 @@ import gradio as gr
3
 
4
  models = [
5
  {"name": "Stable Diffusion 2", "url": "stabilityai/stable-diffusion-2-1"},
6
- ]
 
 
 
 
 
 
 
 
 
7
 
8
  current_model = models[0]
9
 
@@ -13,6 +22,9 @@ for model in models:
13
  loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
14
  models2.append(loaded_model)
15
 
 
 
 
16
  def flip_text(x):
17
  return x[::-1]
18
 
 
3
 
4
  models = [
5
  {"name": "Stable Diffusion 2", "url": "stabilityai/stable-diffusion-2-1"},
6
+ {"name": "stability AI", "url": "stabilityai/stable-diffusion-2-1-base"},
7
+ {"name": "XL-Refiner-1.0", "url": "stabilityai/stable-diffusion-xl-refiner-1.0"},
8
+ {"name": "Future Diffusion", "url": "nitrosocke/Future-Diffusion"},
9
+ {"name": "JWST Deep Space Diffusion", "url": "dallinmackay/JWST-Deep-Space-diffusion"},
10
+ {"name": "Robo Diffusion 3 Base", "url": "nousr/robo-diffusion-2-base"},
11
+ {"name": "Robo Diffusion", "url": "nousr/robo-diffusion"},
12
+ {"name": "Tron Legacy Diffusion", "url": "dallinmackay/Tron-Legacy-diffusion"},
13
+ ]
14
+
15
+ text_gen = gr.Interface.load("spaces/daspartho/prompt-extend")
16
 
17
  current_model = models[0]
18
 
 
22
  loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
23
  models2.append(loaded_model)
24
 
25
+ def text_it(inputs, text_gen=text_gen):
26
+ return text_gen(inputs)
27
+
28
  def flip_text(x):
29
  return x[::-1]
30