Prakh24s commited on
Commit
3ed6ca8
1 Parent(s): 00dc1e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -55,18 +55,18 @@ def upscale_image(image_path, prompt_det):
55
  "negative_prompt": "hands, fingers, feet, legs, shoes",
56
 
57
  }
58
- # output = replicate.run(
59
- # "philz1337x/clarity-upscaler:eba39f520856d5e61a8ad56fd57f97be2fa30de65e29d8e94db5209a1827cd59",
60
- # # "prakharsaxena24/calrity-upscaler-private",
61
- # input=input)
62
 
63
- # return output[0]
64
- deployment = replicate.deployments.get("2clicksmedia/upscaler")
65
- prediction = deployment.predictions.create(
66
- input=input
67
- )
68
- prediction.wait()
69
- return prediction.output[0]
70
 
71
  def get_keyword_prompt(image_url):
72
  client = OpenAI()
 
55
  "negative_prompt": "hands, fingers, feet, legs, shoes",
56
 
57
  }
58
+ output = replicate.run(
59
+ "philz1337x/clarity-upscaler:eba39f520856d5e61a8ad56fd57f97be2fa30de65e29d8e94db5209a1827cd59",
60
+ # "prakharsaxena24/calrity-upscaler-private",
61
+ input=input)
62
 
63
+ return output[0]
64
+ # deployment = replicate.deployments.get("2clicksmedia/upscaler")
65
+ # prediction = deployment.predictions.create(
66
+ # input=input
67
+ # )
68
+ # prediction.wait()
69
+ # return prediction.output[0]
70
 
71
  def get_keyword_prompt(image_url):
72
  client = OpenAI()