Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from PIL import Image
|
|
12 |
|
13 |
# 用户认证信息
|
14 |
USERS = {
|
15 |
-
"
|
16 |
}
|
17 |
|
18 |
# Constants
|
@@ -83,7 +83,7 @@ def generate_image(prompt, base="写实风格", motion="", step=8, progress=gr.P
|
|
83 |
with gr.Blocks(css="style.css") as demo:
|
84 |
# 创建两个界面容器
|
85 |
with gr.Group(visible=True) as login_container:
|
86 |
-
gr.HTML("<h1><center
|
87 |
username = gr.Textbox(label="用户名")
|
88 |
password = gr.Textbox(label="密码", type="password")
|
89 |
login_button = gr.Button("登录")
|
@@ -92,10 +92,11 @@ with gr.Blocks(css="style.css") as demo:
|
|
92 |
# 主界面
|
93 |
with gr.Group(visible=False) as main_container:
|
94 |
gr.HTML(
|
95 |
-
"<h1><center
|
|
|
96 |
"<p><center><span style='color: red;'>如果生成效果不理想,可以将步数从4调整到8。</span></center></p>" +
|
97 |
"<p><center><strong>首次生成视频需要较长时间,之后会变快。</strong></center></p>" +
|
98 |
-
"<p><center
|
99 |
)
|
100 |
with gr.Group():
|
101 |
with gr.Row():
|
|
|
12 |
|
13 |
# 用户认证信息
|
14 |
USERS = {
|
15 |
+
"vip": "vip888", # 示例用户名和密码
|
16 |
}
|
17 |
|
18 |
# Constants
|
|
|
83 |
with gr.Blocks(css="style.css") as demo:
|
84 |
# 创建两个界面容器
|
85 |
with gr.Group(visible=True) as login_container:
|
86 |
+
gr.HTML("<h1><center>officechat-视频生成系统</center></h1>")
|
87 |
username = gr.Textbox(label="用户名")
|
88 |
password = gr.Textbox(label="密码", type="password")
|
89 |
login_button = gr.Button("登录")
|
|
|
92 |
# 主界面
|
93 |
with gr.Group(visible=False) as main_container:
|
94 |
gr.HTML(
|
95 |
+
"<h1><center>🧩 officechat 即时视频生成系统</center></h1>" +
|
96 |
+
"<h1><center>本项目免费为Office chat VIP提供服务。感谢您使用Officechat</center></h1>" +
|
97 |
"<p><center><span style='color: red;'>如果生成效果不理想,可以将步数从4调整到8。</span></center></p>" +
|
98 |
"<p><center><strong>首次生成视频需要较长时间,之后会变快。</strong></center></p>" +
|
99 |
+
"<p><center>为获得最佳效果,请参考示例中的提示词格式(英文)。</center></p>"
|
100 |
)
|
101 |
with gr.Group():
|
102 |
with gr.Row():
|