Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,21 @@ client = Client("radames/Enhance-This-HiDiffusion-SDXL")
|
|
| 8 |
|
| 9 |
def my_interface(input_image, prompt="This is a beautiful scenery", negative_prompt="blurry, ugly, duplicate, poorly drawn, deformed, mosaic", seed=1415926535897932, guidance_scale=8.5, scale=2, controlnet_conditioning_scale=0.5, strength=1.0, controlnet_start=0.0, controlnet_end=1.0, guassian_sigma=2.0, intensity_threshold=3):
|
| 10 |
# Call the other space's predict function
|
| 11 |
-
result = client.predict(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# Return only the first image from the result
|
| 13 |
return result[0][0]
|
| 14 |
|
|
|
|
| 8 |
|
| 9 |
def my_interface(input_image, prompt="This is a beautiful scenery", negative_prompt="blurry, ugly, duplicate, poorly drawn, deformed, mosaic", seed=1415926535897932, guidance_scale=8.5, scale=2, controlnet_conditioning_scale=0.5, strength=1.0, controlnet_start=0.0, controlnet_end=1.0, guassian_sigma=2.0, intensity_threshold=3):
|
| 10 |
# Call the other space's predict function
|
| 11 |
+
result = client.predict(
|
| 12 |
+
input_image=input_image,
|
| 13 |
+
prompt=prompt,
|
| 14 |
+
negative_prompt=negative_prompt,
|
| 15 |
+
seed=seed,
|
| 16 |
+
guidance_scale=guidance_scale,
|
| 17 |
+
scale=scale,
|
| 18 |
+
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 19 |
+
strength=strength,
|
| 20 |
+
controlnet_start=controlnet_start,
|
| 21 |
+
controlnet_end=controlnet_end,
|
| 22 |
+
guassian_sigma=guassian_sigma,
|
| 23 |
+
intensity_threshold=intensity_threshold,
|
| 24 |
+
api_name="/predict"
|
| 25 |
+
)
|
| 26 |
# Return only the first image from the result
|
| 27 |
return result[0][0]
|
| 28 |
|