xiaoxishui commited on
Commit
29fde20
·
verified ·
1 Parent(s): 19320a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -1,7 +1,12 @@
1
- # 替换原来的 demo.launch()
 
 
 
 
 
 
 
 
 
2
  if __name__ == "__main__":
3
- demo.launch(
4
- server_name="0.0.0.0",
5
- server_port=7860,
6
- share=False # Hugging Face Spaces 不需要 share
7
- )
 
1
+ import gradio as gr
2
+
3
+ # 创建一个简单的界面
4
+ with gr.Blocks() as demo:
5
+ gr.Markdown("# AI视频生成应用")
6
+ input_text = gr.Textbox(label="输入描述")
7
+ output_video = gr.Video(label="生成的视频")
8
+ gr.Button("生成")
9
+
10
+ # 启动应用
11
  if __name__ == "__main__":
12
+ demo.launch(server_name="0.0.0.0", server_port=7860)