shared ui and github links are added
Browse files
app.py
CHANGED
@@ -16,6 +16,13 @@ from datetime import datetime
|
|
16 |
|
17 |
project_name = ''
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
sys.path.append(project_name)
|
20 |
|
21 |
sys.path.append(os.path.abspath(join(project_name, 'FGT_codes')))
|
@@ -247,12 +254,15 @@ title = """<h1 align="center">Video Object Remover</h1>"""
|
|
247 |
|
248 |
with gr.Blocks() as demo:
|
249 |
gr.Markdown(title)
|
|
|
250 |
gr.Markdown(
|
251 |
"""
|
252 |
- Start uploading the video you wanted to edit.
|
253 |
- Select the object you want to remove from the video.
|
254 |
- Click on Run to start the process.
|
255 |
""")
|
|
|
|
|
256 |
original_frame_list = gr.State([])
|
257 |
mask_list = gr.State([])
|
258 |
# constants
|
|
|
16 |
|
17 |
project_name = ''
|
18 |
|
19 |
+
SHARED_UI_WARNING = f'''### [NOTE] It is possible that you are waiting in a lengthy queue.
|
20 |
+
You can duplicate and use it with a paid private GPU.
|
21 |
+
<a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/oguzakif/video-object-remover?duplicate=true"><img style="margin-top:0;margin-bottom:0" src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-xl-dark.svg" alt="Duplicate Space"></a>
|
22 |
+
'''
|
23 |
+
article = """<div style='display:flex; gap: 0.25rem; '><a href='https://github.com/oguzakif/video-object-remover'><img src='https://img.shields.io/badge/Github-Code-blue'></a></div>
|
24 |
+
"""
|
25 |
+
|
26 |
sys.path.append(project_name)
|
27 |
|
28 |
sys.path.append(os.path.abspath(join(project_name, 'FGT_codes')))
|
|
|
254 |
|
255 |
with gr.Blocks() as demo:
|
256 |
gr.Markdown(title)
|
257 |
+
gr.Markdown(SHARED_UI_WARNING)
|
258 |
gr.Markdown(
|
259 |
"""
|
260 |
- Start uploading the video you wanted to edit.
|
261 |
- Select the object you want to remove from the video.
|
262 |
- Click on Run to start the process.
|
263 |
""")
|
264 |
+
gr.Markdown(article)
|
265 |
+
|
266 |
original_frame_list = gr.State([])
|
267 |
mask_list = gr.State([])
|
268 |
# constants
|