Spaces:
Running
on
Zero
Running
on
Zero
rem ssr
Browse files
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=
|
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
|
|
|
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
|