Update app.py

#4
by deleted - opened
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -64,7 +64,7 @@ def process_video(
64
  video_path,
65
  prompt,
66
  negative_prompt="",
67
- num_frames=81,
68
  auto_resize=True,
69
  manual_height=480,
70
  manual_width=832,
@@ -166,12 +166,12 @@ with gr.Blocks(title="Lucy Edit - Video Editing with Text", css=css) as demo:
166
  )
167
 
168
  num_frames = gr.Slider(
169
- label="Number of Frames",
170
  minimum=1,
171
  maximum=120,
172
- value=81,
173
  step=1,
174
- info="More frames = longer processing time"
175
  )
176
 
177
  with gr.Row():
@@ -202,7 +202,7 @@ with gr.Blocks(title="Lucy Edit - Video Editing with Text", css=css) as demo:
202
  generate_btn = gr.Button("Edit Video", variant="primary")
203
 
204
  with gr.Column(scale=1):
205
- video_output = gr.Video(label="Edited Video", autoplay=True)
206
 
207
  gr.Examples(
208
  examples=[
@@ -232,4 +232,4 @@ with gr.Blocks(title="Lucy Edit - Video Editing with Text", css=css) as demo:
232
  )
233
 
234
  if __name__ == "__main__":
235
- demo.launch(share=True)
 
64
  video_path,
65
  prompt,
66
  negative_prompt="",
67
+ num_frames=120, # ✅ تغییر از 81 به 120 برای 5 ثانیه
68
  auto_resize=True,
69
  manual_height=480,
70
  manual_width=832,
 
166
  )
167
 
168
  num_frames = gr.Slider(
169
+ label="Number of Frames (120 = 5 seconds)", # ✅ توضیح اضافه شد
170
  minimum=1,
171
  maximum=120,
172
+ value=120, # ✅ تغییر از 81 به 120
173
  step=1,
174
+ info="Default: 120 frames = 5 seconds video @ 24fps" # ✅ توضیح اضافه شد
175
  )
176
 
177
  with gr.Row():
 
202
  generate_btn = gr.Button("Edit Video", variant="primary")
203
 
204
  with gr.Column(scale=1):
205
+ video_output = gr.Video(label="Edited Video (5 seconds)", autoplay=True) # ✅ برچسب تغییر کرد
206
 
207
  gr.Examples(
208
  examples=[
 
232
  )
233
 
234
  if __name__ == "__main__":
235
+ demo.launch(share=True)