Logan Zoellner commited on
Commit
ace7020
·
1 Parent(s): 40e5857

slightly prettier??

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -125,7 +125,7 @@ def poem_to_image(poem):
125
  iface = gr.Interface.load("spaces/multimodalart/latentdiffusion")
126
  print("about to die",iface,dir(iface))
127
 
128
- prompt = re.sub(r'[^a-zA-Z0-9 .]', '', poem)
129
  print("about to die",prompt)
130
 
131
 
@@ -145,8 +145,8 @@ with demo:
145
 
146
  with gr.Row():
147
  b0 = gr.Button("Randomize name,race and class")
148
- b1 = gr.Button("Generate NPC")
149
- b2 = gr.Button("Generate Image")
150
 
151
  with gr.Row():
152
  input_name = gr.Textbox(label="name",placeholder="Drizzt")
 
125
  iface = gr.Interface.load("spaces/multimodalart/latentdiffusion")
126
  print("about to die",iface,dir(iface))
127
 
128
+ prompt = re.sub(r'[^a-zA-Z0-9 ,.]', '', poem)
129
  print("about to die",prompt)
130
 
131
 
 
145
 
146
  with gr.Row():
147
  b0 = gr.Button("Randomize name,race and class")
148
+ b1 = gr.Button("Generate NPC Description")
149
+ b2 = gr.Button("Generate Portrait")
150
 
151
  with gr.Row():
152
  input_name = gr.Textbox(label="name",placeholder="Drizzt")