Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def infer_light_migration(
|
|
| 87 |
num_inference_steps: int = 8,
|
| 88 |
height: Optional[int] = None,
|
| 89 |
width: Optional[int] = None,
|
| 90 |
-
|
| 91 |
) -> Tuple[Image.Image, int]:
|
| 92 |
"""
|
| 93 |
Transfer lighting and color tones from a reference image to a source image
|
|
@@ -328,6 +328,6 @@ with gr.Blocks() as demo:
|
|
| 328 |
)
|
| 329 |
|
| 330 |
# API endpoint
|
| 331 |
-
gr.api(infer_light_migration, api_name="infer_light_migration")
|
| 332 |
|
| 333 |
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=css, footer_links=["api", "gradio", "settings"])
|
|
|
|
| 87 |
num_inference_steps: int = 8,
|
| 88 |
height: Optional[int] = None,
|
| 89 |
width: Optional[int] = None,
|
| 90 |
+
progress: Optional[gr.Progress] = gr.Progress(track_tqdm=True)
|
| 91 |
) -> Tuple[Image.Image, int]:
|
| 92 |
"""
|
| 93 |
Transfer lighting and color tones from a reference image to a source image
|
|
|
|
| 328 |
)
|
| 329 |
|
| 330 |
# API endpoint
|
| 331 |
+
# gr.api(infer_light_migration, api_name="infer_light_migration")
|
| 332 |
|
| 333 |
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=css, footer_links=["api", "gradio", "settings"])
|