AlGe commited on
Commit
c0bed6d
·
verified ·
1 Parent(s): ef7e565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -1,7 +1,17 @@
 
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
 
 
 
 
 
 
1
+ from gradio_client import Client
2
  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, negative_prompt, seed, 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)
11
+ return result
12
+
13
+ # Define your Gradio interface
14
+ iface = gr.Interface(fn=my_interface, inputs=..., outputs=...)
15
+
16
+ # Launch your Gradio interface
17
+ iface.launch()