Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def process_and_save(request: gr.Request, text):
|
|
55 |
# Mark main function as not requiring GPU
|
56 |
process_and_save.zerogpu = True
|
57 |
|
|
|
58 |
# Create Gradio interface
|
59 |
with gr.Blocks() as demo:
|
60 |
text_input = gr.Textbox(label="Enter some text")
|
@@ -73,5 +74,5 @@ app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False)
|
|
73 |
# Run server
|
74 |
if __name__ == "__main__":
|
75 |
# Set SSR mode for Spaces
|
76 |
-
os.environ["GRADIO_SSR_MODE"] = "
|
77 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
55 |
# Mark main function as not requiring GPU
|
56 |
process_and_save.zerogpu = True
|
57 |
|
58 |
+
|
59 |
# Create Gradio interface
|
60 |
with gr.Blocks() as demo:
|
61 |
text_input = gr.Textbox(label="Enter some text")
|
|
|
74 |
# Run server
|
75 |
if __name__ == "__main__":
|
76 |
# Set SSR mode for Spaces
|
77 |
+
os.environ["GRADIO_SSR_MODE"] = "True"
|
78 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|