SPACERUNNER99 commited on
Commit
46b092a
·
verified ·
1 Parent(s): b69ba4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -11,7 +11,7 @@ def main(url, parameters, progress=gr.Progress()):
11
  This function reports progress by yielding intermediate updates.
12
  Gradio watches these yields to update the progress bar.
13
  """
14
- font_type, font_size, background_color, font_color, service, target, style, subject = params_string.split(',')
15
  # Assume parameters is a comma-separated string: "color,font"
16
  progress(0, desc="پردازش شروع شد")
17
  yield "پردازش شروع شد", None
@@ -45,7 +45,6 @@ def main(url, parameters, progress=gr.Progress()):
45
  color=font_color,
46
  font=font_type,
47
  font_size=font_size,
48
- background_color=background_color,
49
  input_audio=handle_file(mp3_file),
50
  api_name="/video_edit"
51
  )
@@ -59,7 +58,7 @@ with gr.Blocks() as demo:
59
  with gr.Column():
60
  progress_output = gr.Textbox(label="Progress", visible=False)
61
  video_file_input = gr.Text(label="Video URL")
62
- clip_type = gr.Dropdown(["dub", "sub"], label="Clip Type")
63
  parameters = gr.Text(label="Additional Parameters (for subtitles: color,font)")
64
  btn = gr.Button("Create")
65
  video_file_output = gr.Video(label="Result Video")
 
11
  This function reports progress by yielding intermediate updates.
12
  Gradio watches these yields to update the progress bar.
13
  """
14
+ font_type, font_size, font_color, service, target, style, subject = params_string.split(',')
15
  # Assume parameters is a comma-separated string: "color,font"
16
  progress(0, desc="پردازش شروع شد")
17
  yield "پردازش شروع شد", None
 
45
  color=font_color,
46
  font=font_type,
47
  font_size=font_size,
 
48
  input_audio=handle_file(mp3_file),
49
  api_name="/video_edit"
50
  )
 
58
  with gr.Column():
59
  progress_output = gr.Textbox(label="Progress", visible=False)
60
  video_file_input = gr.Text(label="Video URL")
61
+ #clip_type = gr.Dropdown(["dub", "sub"], label="Clip Type")
62
  parameters = gr.Text(label="Additional Parameters (for subtitles: color,font)")
63
  btn = gr.Button("Create")
64
  video_file_output = gr.Video(label="Result Video")