Spaces:
Running
Running
송형규
commited on
Commit
•
7c7e6cf
1
Parent(s):
da8e881
fix to apply duration rate (`b7e146b` in https://bitbucket.org/maum-system/cvpr22-demo-gradio)
Browse files- client_rest.py +3 -2
client_rest.py
CHANGED
@@ -5,6 +5,7 @@ import argparse
|
|
5 |
|
6 |
VIDEO_WIDTH = 1080
|
7 |
VIDEO_HEIGHT = 1920
|
|
|
8 |
|
9 |
class RestAPIApplication:
|
10 |
def __init__(self, ip, port):
|
@@ -23,7 +24,7 @@ class RestAPIApplication:
|
|
23 |
request_form = dict()
|
24 |
|
25 |
request_form['text'] = text
|
26 |
-
request_form['speaker'] =
|
27 |
request_form['width'] = VIDEO_WIDTH
|
28 |
request_form['height'] = VIDEO_HEIGHT
|
29 |
|
@@ -35,7 +36,7 @@ class RestAPIApplication:
|
|
35 |
background_base64 = ""
|
36 |
|
37 |
request_form['background'] = background_base64
|
38 |
-
request_form['durationRate'] =
|
39 |
request_form['isVideoBackground'] = is_video_background
|
40 |
request_form['lang'] = lang
|
41 |
|
|
|
5 |
|
6 |
VIDEO_WIDTH = 1080
|
7 |
VIDEO_HEIGHT = 1920
|
8 |
+
SPEAKER_ID = 0
|
9 |
|
10 |
class RestAPIApplication:
|
11 |
def __init__(self, ip, port):
|
|
|
24 |
request_form = dict()
|
25 |
|
26 |
request_form['text'] = text
|
27 |
+
request_form['speaker'] = SPEAKER_ID
|
28 |
request_form['width'] = VIDEO_WIDTH
|
29 |
request_form['height'] = VIDEO_HEIGHT
|
30 |
|
|
|
36 |
background_base64 = ""
|
37 |
|
38 |
request_form['background'] = background_base64
|
39 |
+
request_form['durationRate'] = duration_rate
|
40 |
request_form['isVideoBackground'] = is_video_background
|
41 |
request_form['lang'] = lang
|
42 |
|