PiAPI commited on
Commit
a3adf8b
·
verified ·
1 Parent(s): b5d2ff0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 Generation Tool")
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")