Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,10 @@ import gradio as gr
|
|
| 5 |
client = Client("radames/Enhance-This-HiDiffusion-SDXL")
|
| 6 |
print(client.view_api())
|
| 7 |
# Define your interface function
|
|
|
|
| 8 |
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):
|
| 9 |
# Call the other space's predict function
|
| 10 |
-
result = client.predict(input_image, prompt, negative_prompt, seed, guidance_scale, scale, controlnet_conditioning_scale, strength, controlnet_start, controlnet_end, guassian_sigma, intensity_threshold, api_name="predict")
|
| 11 |
# Return only the first image from the result
|
| 12 |
return result[0][0]
|
| 13 |
|
|
|
|
| 5 |
client = Client("radames/Enhance-This-HiDiffusion-SDXL")
|
| 6 |
print(client.view_api())
|
| 7 |
# Define your interface function
|
| 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(input_image, prompt, negative_prompt, seed, guidance_scale, scale, controlnet_conditioning_scale, strength, controlnet_start, controlnet_end, guassian_sigma, intensity_threshold, api_name="/predict")
|
| 12 |
# Return only the first image from the result
|
| 13 |
return result[0][0]
|
| 14 |
|