洪文逸 commited on
Commit
76cfe4d
·
1 Parent(s): bffd8d4

maintenance notice

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -4,7 +4,9 @@ from __future__ import annotations
4
 
5
  import gradio as gr
6
 
7
- from model import AppModel
 
 
8
 
9
  DESCRIPTION = '''# <a href="https://github.com/THUDM/CogVideo">CogVideo</a>
10
 
@@ -20,9 +22,11 @@ FOOTER = '<img id="visitor-badge" alt="visitor badge" src="https://visitor-badge
20
 
21
  def main():
22
  only_first_stage = True
23
- model = AppModel(only_first_stage)
24
 
25
  with gr.Blocks(css='style.css') as demo:
 
 
26
  gr.Markdown(DESCRIPTION)
27
 
28
  with gr.Row():
@@ -73,6 +77,7 @@ def main():
73
  ],
74
  outputs=[translated_text, result_video])
75
  print(gr.__version__)
 
76
  demo.launch()
77
 
78
 
 
4
 
5
  import gradio as gr
6
 
7
+ # from model import AppModel
8
+
9
+ MAINTENANCE_NOTICE='This space is under maintenance'
10
 
11
  DESCRIPTION = '''# <a href="https://github.com/THUDM/CogVideo">CogVideo</a>
12
 
 
22
 
23
  def main():
24
  only_first_stage = True
25
+ # model = AppModel(only_first_stage)
26
 
27
  with gr.Blocks(css='style.css') as demo:
28
+ gr.Markdown(MAINTENANCE_NOTICE)
29
+ '''
30
  gr.Markdown(DESCRIPTION)
31
 
32
  with gr.Row():
 
77
  ],
78
  outputs=[translated_text, result_video])
79
  print(gr.__version__)
80
+ '''
81
  demo.launch()
82
 
83