Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def load_image_from_url(url):
|
|
| 30 |
def send_to_api(key, prompt, image_url, mask_url, path_points):
|
| 31 |
"""Send the image and mask to the API endpoint."""
|
| 32 |
|
| 33 |
-
path_points = path_points.replace("'", '"')
|
| 34 |
path_points_list = json.loads(path_points)
|
| 35 |
|
| 36 |
url = "https://api.goapi.ai/api/v1/task"
|
|
@@ -190,7 +190,7 @@ def generate_video(key, prompt,mask_url, original_image_url,path_points):
|
|
| 190 |
|
| 191 |
|
| 192 |
with gr.Blocks() as interface:
|
| 193 |
-
gr.Markdown("# Video Motion
|
| 194 |
|
| 195 |
gr.Markdown("---")
|
| 196 |
gr.Markdown("### 1. Input Background Image URL")
|
|
|
|
| 30 |
def send_to_api(key, prompt, image_url, mask_url, path_points):
|
| 31 |
"""Send the image and mask to the API endpoint."""
|
| 32 |
|
| 33 |
+
path_points = path_points.replace("'", '"')
|
| 34 |
path_points_list = json.loads(path_points)
|
| 35 |
|
| 36 |
url = "https://api.goapi.ai/api/v1/task"
|
|
|
|
| 190 |
|
| 191 |
|
| 192 |
with gr.Blocks() as interface:
|
| 193 |
+
gr.Markdown("# Kling API Video Motion Brush Tool")
|
| 194 |
|
| 195 |
gr.Markdown("---")
|
| 196 |
gr.Markdown("### 1. Input Background Image URL")
|