Skip to content

Commit

Permalink
"Original Movie Path" input can now be done by drag-and-drop as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
s9roll7 committed Mar 10, 2023
1 parent c57a71b commit 63a90d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebsynth_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def process_end(dbg, info):


if not os.path.isdir(project_dir):
dbg.print("project_dir not found")
dbg.print("{0} project_dir not found".format(project_dir))
return process_end( dbg, info )

if not os.path.isfile(original_movie_path):
dbg.print("original_movie_path not found")
dbg.print("{0} original_movie_path not found".format(original_movie_path))
return process_end( dbg, info )

is_invert_mask = False
Expand Down
9 changes: 9 additions & 0 deletions scripts/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ def on_ui_tabs():
with gr.TabItem('project setting', elem_id='ebs_project_setting'):
project_dir = gr.Textbox(label='Project directory', lines=1)
original_movie_path = gr.Textbox(label='Original Movie Path', lines=1)

org_video = gr.Video(interactive=True, mirror_webcam=False)
def fn_upload_org_video(video):
return video
org_video.upload(fn_upload_org_video, org_video, original_movie_path)
gr.HTML(value="<p style='margin-bottom: 1.2em'>\
If you have trouble entering the video path manually, you can also use drag and drop.For large videos, please enter the path manually. \
</p>")

with gr.TabItem('configuration', elem_id='ebs_configuration'):
with gr.Tabs(elem_id="ebs_configuration_tab"):
with gr.TabItem(label="stage 1",elem_id='ebs_configuration_tab1'):
Expand Down

0 comments on commit 63a90d3

Please sign in to comment.