Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,10 @@ def style_transfer(input_image_path, style_image_path, prompt_det):
|
|
40 |
)
|
41 |
return output[0]
|
42 |
|
43 |
-
def upscale_image(image_path,prompt_det):
|
44 |
input = {
|
45 |
"image": image_path,
|
46 |
-
"prompt": "candid photo, high iso, phone camera, grainy <lora:more_details:0.5> , symmetric hands" + prompt_det,
|
47 |
"scale_factor": 3,
|
48 |
"negative_prompt": "hands, fingers, feet, legs, shoes",
|
49 |
|
@@ -74,7 +74,7 @@ def get_keyword_prompt(image_url):
|
|
74 |
],
|
75 |
# max_tokens=300,
|
76 |
)
|
77 |
-
print(response)
|
78 |
return response.choices[0].message.content
|
79 |
|
80 |
|
|
|
40 |
)
|
41 |
return output[0]
|
42 |
|
43 |
+
def upscale_image(image_path, prompt_det):
|
44 |
input = {
|
45 |
"image": image_path,
|
46 |
+
"prompt": "candid photo, high iso, phone camera, grainy <lora:more_details:0.5> , symmetric hands " + prompt_det,
|
47 |
"scale_factor": 3,
|
48 |
"negative_prompt": "hands, fingers, feet, legs, shoes",
|
49 |
|
|
|
74 |
],
|
75 |
# max_tokens=300,
|
76 |
)
|
77 |
+
# print(response)
|
78 |
return response.choices[0].message.content
|
79 |
|
80 |
|