Akbartus commited on
Commit
65f255a
·
verified ·
1 Parent(s): 3bfbf6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ async def generate_image(prompt, model, lora_word, width, height, scales, steps,
33
 
34
  def get_upscale_finegrain(prompt, img_path, upscale_factor):
35
  try:
36
- client = Client("finegrain/finegrain-image-enhancer",
37
  result = client.predict(input_image=handle_file(img_path), prompt=prompt, negative_prompt="", seed=42, upscale_factor=upscale_factor, controlnet_scale=0.6, controlnet_decay=1, condition_scale=6, tile_width=112, tile_height=144, denoise_strength=0.35, num_inference_steps=18, solver="DDIM", api_name="/process")
38
  return result[1]
39
  except Exception as e:
 
33
 
34
  def get_upscale_finegrain(prompt, img_path, upscale_factor):
35
  try:
36
+ client = Client("finegrain/finegrain-image-enhancer")
37
  result = client.predict(input_image=handle_file(img_path), prompt=prompt, negative_prompt="", seed=42, upscale_factor=upscale_factor, controlnet_scale=0.6, controlnet_decay=1, condition_scale=6, tile_width=112, tile_height=144, denoise_strength=0.35, num_inference_steps=18, solver="DDIM", api_name="/process")
38
  return result[1]
39
  except Exception as e: