m7n commited on
Commit
ba5148a
·
1 Parent(s): bb3cc4e
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ from spaces.zero.client import _get_token
12
  static_dir = Path('./static')
13
  static_dir.mkdir(parents=True, exist_ok=True)
14
 
15
- @spaces.GPU(duration=4*60)
16
  def predict(request: gr.Request,text_input):
17
  token = _get_token(request)
18
  file_name = f"{datetime.utcnow().strftime('%s')}.html"
@@ -48,4 +48,4 @@ The Gradio app generates dynamic HTML files and stores them in a static director
48
 
49
  new_btn.click(fn=predict, inputs=[text_input], outputs=[markdown, html])
50
 
51
- block.launch(debug=True, share=False,ssr_mode=False)
 
12
  static_dir = Path('./static')
13
  static_dir.mkdir(parents=True, exist_ok=True)
14
 
15
+ @spaces.GPU(duration=10)
16
  def predict(request: gr.Request,text_input):
17
  token = _get_token(request)
18
  file_name = f"{datetime.utcnow().strftime('%s')}.html"
 
48
 
49
  new_btn.click(fn=predict, inputs=[text_input], outputs=[markdown, html])
50
 
51
+ block.launch(debug=True, share=False)#,ssr_mode=False