LAJILAODEEAIQ commited on
Commit
52791c8
·
verified ·
1 Parent(s): 50a3e1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -51
app.py CHANGED
@@ -1,49 +1,3 @@
1
- Hugging Face's logo
2
- Hugging Face
3
- Models
4
- Datasets
5
- Spaces
6
- Posts
7
- Docs
8
- Enterprise
9
- Pricing
10
-
11
-
12
-
13
- Spaces:
14
-
15
-
16
- LAJILAODEEAIQ
17
- /
18
- office-chat-Instant-Video
19
-
20
-
21
- like
22
- 0
23
-
24
- App
25
- Files
26
- Community
27
- Settings
28
- office-chat-Instant-Video
29
- /
30
- app.py
31
-
32
- KingNish's picture
33
- KingNish
34
- Update app.py
35
- 4e918fb
36
- verified
37
- 5 months ago
38
- raw
39
-
40
- Copy download link
41
- history
42
- blame
43
- edit
44
- delete
45
-
46
- 6.35 kB
47
  import gradio as gr
48
  import torch
49
  import os
@@ -129,7 +83,7 @@ def generate_image(prompt, base="写实风格", motion="", step=8, progress=gr.P
129
  with gr.Blocks(css="style.css") as demo:
130
  # 登录界面
131
  with gr.Tab("登录"):
132
- gr.HTML("<h1><center>officechat视频生成系统登录</center></h1>")
133
  username = gr.Textbox(label="用户名")
134
  password = gr.Textbox(label="密码", type="password")
135
  login_button = gr.Button("登录")
@@ -140,7 +94,7 @@ with gr.Blocks(css="style.css") as demo:
140
  gr.HTML(
141
  "<h1><center>officechat即时视频生成系统</center></h1>" +
142
  "<p><center><span style='color: red;'>如果生成效果不理想,可以将步数从4调整到8。</span></center></p>" +
143
- "<p><center><strong>本程序为officechat VIP用户免费使用,首次生成视频需要较长时间,之后会变快。</strong></center></p>" +
144
  "<p><center>为获得最佳效果,请参考示例中的提示词格式。</center></p>"
145
  )
146
  with gr.Group():
@@ -236,6 +190,4 @@ with gr.Blocks(css="style.css") as demo:
236
  _js="(success, msg) => { if(success) { window.location.hash = '#video-generation'; } return msg; }"
237
  )
238
 
239
- demo.queue().launch()
240
-
241
- Translate
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import torch
3
  import os
 
83
  with gr.Blocks(css="style.css") as demo:
84
  # 登录界面
85
  with gr.Tab("登录"):
86
+ gr.HTML("<h1><center>视频生成系统登录</center></h1>")
87
  username = gr.Textbox(label="用户名")
88
  password = gr.Textbox(label="密码", type="password")
89
  login_button = gr.Button("登录")
 
94
  gr.HTML(
95
  "<h1><center>officechat即时视频生成系统</center></h1>" +
96
  "<p><center><span style='color: red;'>如果生成效果不理想,可以将步数从4调整到8。</span></center></p>" +
97
+ "<p><center><strong>首次生成视频需要较长时间,之后会变快。</strong></center></p>" +
98
  "<p><center>为获得最佳效果,请参考示例中的提示词格式。</center></p>"
99
  )
100
  with gr.Group():
 
190
  _js="(success, msg) => { if(success) { window.location.hash = '#video-generation'; } return msg; }"
191
  )
192
 
193
+ demo.queue().launch()