aifeifei798 commited on
Commit
2c166e9
1 Parent(s): c013a27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -13
app.py CHANGED
@@ -69,18 +69,6 @@ def infer(prompt, quality_select, styles_Radio, seed=42, randomize_seed=False, w
69
  output_type="pil",
70
  ).images[0]
71
  return image, seed
72
- # for img in pipe.flux_pipe_call_that_returns_an_iterable_of_images(
73
- # prompt=prompt,
74
- # guidance_scale=guidance_scale,
75
- # num_inference_steps=num_inference_steps,
76
- # width=width,
77
- # height=height,
78
- # generator=generator,
79
- # output_type="pil",
80
- # good_vae=good_vae,
81
- # ):
82
- # yield img, seed
83
-
84
 
85
  def encode_image(image_path):
86
  """Encode the image to base64."""
@@ -94,7 +82,6 @@ def encode_image(image_path):
94
  print(f"Error: {e}")
95
  return None
96
 
97
-
98
  def predict(message, history, additional_dropdown):
99
  message_text = message.get("text", "")
100
  message_files = message.get("files", [])
 
69
  output_type="pil",
70
  ).images[0]
71
  return image, seed
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  def encode_image(image_path):
74
  """Encode the image to base64."""
 
82
  print(f"Error: {e}")
83
  return None
84
 
 
85
  def predict(message, history, additional_dropdown):
86
  message_text = message.get("text", "")
87
  message_files = message.get("files", [])