YaohuiW commited on
Commit
6e9429f
·
verified ·
1 Parent(s): c42db24

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +49 -0
  2. requirements.txt +10 -0
app.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_tabs.animation import animation
3
+ from gradio_tabs.vid_edit import vid_edit
4
+
5
+
6
+ def load_file(path):
7
+
8
+ with open(path, 'r', encoding='utf-8') as f:
9
+ content = f.read()
10
+
11
+ return content
12
+
13
+ custom_css = """
14
+ <style>
15
+ body {
16
+ font-family: Georgia, serif; /* Change to your desired font */
17
+ }
18
+ h1 {
19
+ color: black; /* Change title color */
20
+ }
21
+ </style>
22
+ """
23
+
24
+
25
+ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
26
+ # ... (input/output setup remains unchanged)
27
+
28
+ gr.HTML(load_file("assets/title.md"))
29
+ with gr.Row():
30
+ with gr.Accordion(open=False, label="Instruction"):
31
+ gr.Markdown(load_file("assets/instruction.md"))
32
+
33
+ with gr.Row():
34
+ with gr.Tabs():
35
+ animation()
36
+ vid_edit()
37
+
38
+
39
+ if __name__ == "__main__":
40
+
41
+ demo.launch(
42
+ server_name='0.0.0.0',
43
+ #server_port=7803,
44
+ server_port=10008,
45
+ share=True,
46
+ allowed_paths=[
47
+ "./data/source",
48
+ "./data/driving"]
49
+ )
requirements.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ einops==0.8.1
2
+ imageio==2.37.0
3
+ numpy==1.24.3
4
+ Pillow==11.3.0
5
+ PyYAML==6.0.2
6
+ PyYAML==6.0.2
7
+ skimage==0.0
8
+ torch==2.0.1
9
+ torchvision==0.15.2
10
+ tqdm==4.67.1