Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
-
|
64 |
-
deployment = replicate.deployments.get("2clicksmedia/upscaler")
|
65 |
-
prediction = deployment.predictions.create(
|
66 |
-
|
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()
|