GandalfTheBlack commited on
Commit
42203a0
·
verified ·
1 Parent(s): abf1c42

Update app.py

Browse files

removed .webp default img to png image

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -31,9 +31,9 @@ def extend_choices(choices):
31
 
32
  def update_imgbox(choices):
33
  choices_plus = extend_choices(choices)
34
- return [gr.Image(None, label = m, visible = (m != 'NA')) for m in choices_plus]
 
35
 
36
-
37
  def gen_fn(model_str, prompt):
38
  if model_str == 'NA':
39
  return None
@@ -65,7 +65,7 @@ with gr.Blocks() as demo:
65
  gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
66
 
67
  with gr.Row():
68
- output = [gr.Image(label = '') for _ in range(max_imagesone)]
69
 
70
  for i, o in enumerate(output):
71
  img_in = gr.Number(i, visible = False)
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
76
  gr.HTML(
77
  """
78
  <div class="footer">
79
- <p> Based on the <a href="https://huggingface.co/spaces/derwahnsinn/TestGen">TestGen</a> Space by derwahnsinn, the <a href="https://huggingface.co/spaces/RdnUser77/SpacIO_v1">SpacIO</a> Space by RdnUser77, Omnibus's Maximum Multiplier, <a href="https://huggingface.co/spaces/Yntec/Diffusion60XX">Diffusion60XX</a> and <a href="https://huggingface.co/spaces/Yntec/ToyWorld">Toy World</a>!
80
  </p>
81
  """
82
  )
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
103
  """
104
  )
105
  with gr.Column():
106
- output2 = [gr.Image(label = '') for _ in range(max_images)]
107
 
108
  for i, o in enumerate(output2):
109
  img_i = gr.Number(i, visible = False)
 
31
 
32
  def update_imgbox(choices):
33
  choices_plus = extend_choices(choices)
34
+ return [gr.Image(None, label=m, visible=(m != 'NA'), format="png") for m in choices_plus]
35
+
36
 
 
37
  def gen_fn(model_str, prompt):
38
  if model_str == 'NA':
39
  return None
 
65
  gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
66
 
67
  with gr.Row():
68
+ output = [gr.Image(label='', format="png") for _ in range(max_imagesone)]
69
 
70
  for i, o in enumerate(output):
71
  img_in = gr.Number(i, visible = False)
 
76
  gr.HTML(
77
  """
78
  <div class="footer">
79
+ <p> My name is Joseph Erickson (Gandalf the Black) and I fixxed this project and got it working again, I really love it and had to repair it I missed it that bad. Based on the <a href="https://huggingface.co/spaces/derwahnsinn/TestGen">TestGen</a> Space by derwahnsinn, the <a href="https://huggingface.co/spaces/RdnUser77/SpacIO_v1">SpacIO</a> Space by RdnUser77, Omnibus's Maximum Multiplier, <a href="https://huggingface.co/spaces/Yntec/Diffusion60XX">Diffusion60XX</a> and <a href="https://huggingface.co/spaces/Yntec/ToyWorld">Toy World</a>!
80
  </p>
81
  """
82
  )
 
103
  """
104
  )
105
  with gr.Column():
106
+ output2 = [gr.Image(label='', format="png") for _ in range(max_images)]
107
 
108
  for i, o in enumerate(output2):
109
  img_i = gr.Number(i, visible = False)