Spaces:
Running
on
Zero
Running
on
Zero
expose less mcp tools (#9)
Browse files- expose less mcp tools (2c8de7e1986c8cf52231351ded11650b39c97dd8)
- Update app.py (784b7abc00a10135e78587f432d842980ba2a871)
app.py
CHANGED
|
@@ -184,8 +184,8 @@ def infer_camera_edit(
|
|
| 184 |
randomize_seed: bool = True,
|
| 185 |
true_guidance_scale: float = 1.0,
|
| 186 |
num_inference_steps: int = 4,
|
| 187 |
-
height: int =
|
| 188 |
-
width: int =
|
| 189 |
prev_output: Optional[Image.Image] = None,
|
| 190 |
progress: gr.Progress = gr.Progress(track_tqdm=True)
|
| 191 |
) -> Tuple[Image.Image, int, str]:
|
|
@@ -632,4 +632,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 632 |
|
| 633 |
run_event.then(lambda img, *_: img, inputs=[result], outputs=[prev_output])
|
| 634 |
|
| 635 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
randomize_seed: bool = True,
|
| 185 |
true_guidance_scale: float = 1.0,
|
| 186 |
num_inference_steps: int = 4,
|
| 187 |
+
height: Optional[int] = None,
|
| 188 |
+
width: Optional[int] = None,
|
| 189 |
prev_output: Optional[Image.Image] = None,
|
| 190 |
progress: gr.Progress = gr.Progress(track_tqdm=True)
|
| 191 |
) -> Tuple[Image.Image, int, str]:
|
|
|
|
| 632 |
|
| 633 |
run_event.then(lambda img, *_: img, inputs=[result], outputs=[prev_output])
|
| 634 |
|
| 635 |
+
gr.api(infer_camera_edit, api_name="infer_edit_camera_angles")
|
| 636 |
+
gr.api(create_video_between_images, api_name="create_video_between_images")
|
| 637 |
+
|
| 638 |
+
demo.launch(mcp_server=True, show_api=True)
|