Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,15 +86,13 @@ def make_me():
|
|
86 |
with gr.Row():
|
87 |
gen_button.click(gen_fn, [model_selector, txt_input], output)
|
88 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button], cancels=[gen_button.click])
|
89 |
-
|
90 |
-
with gr.Row():
|
91 |
-
gr.HTML("")
|
92 |
-
|
93 |
-
# Mount folder /tmp sebagai static files
|
94 |
-
app = gr.mount_gradio_app(demo, StaticFiles(directory="/tmp"), path="/file")
|
95 |
|
96 |
with gr.Blocks(css=css_code) as demo:
|
97 |
make_me()
|
98 |
|
|
|
|
|
|
|
|
|
99 |
demo.queue(concurrency_count=50)
|
100 |
demo.launch()
|
|
|
86 |
with gr.Row():
|
87 |
gen_button.click(gen_fn, [model_selector, txt_input], output)
|
88 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button], cancels=[gen_button.click])
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
with gr.Blocks(css=css_code) as demo:
|
91 |
make_me()
|
92 |
|
93 |
+
# Mount static files after demo is defined
|
94 |
+
app = demo.app
|
95 |
+
app.mount("/file", StaticFiles(directory="/tmp"), name="static")
|
96 |
+
|
97 |
demo.queue(concurrency_count=50)
|
98 |
demo.launch()
|