Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
# Create a client for the other space
|
| 5 |
client = Client("radames/Enhance-This-HiDiffusion-SDXL")
|
| 6 |
-
|
| 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
|
|
@@ -16,5 +16,6 @@ iface = gr.Interface(fn=my_interface,
|
|
| 16 |
inputs=gr.Image(),
|
| 17 |
outputs=gr.Image())
|
| 18 |
|
|
|
|
| 19 |
# Launch your Gradio interface
|
| 20 |
iface.launch()
|
|
|
|
| 3 |
|
| 4 |
# Create a client for the other space
|
| 5 |
client = Client("radames/Enhance-This-HiDiffusion-SDXL")
|
| 6 |
+
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
|
|
|
|
| 16 |
inputs=gr.Image(),
|
| 17 |
outputs=gr.Image())
|
| 18 |
|
| 19 |
+
iface = gr.Interface(fn=predict, inputs=inputs, outputs=outputs)
|
| 20 |
# Launch your Gradio interface
|
| 21 |
iface.launch()
|