Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ app.mount("/static", StaticFiles(directory="static"), name="static")
|
|
29 |
# Tell Gradio which paths are allowed to be served
|
30 |
os.environ["GRADIO_ALLOWED_PATHS"] = str(static_dir.resolve())
|
31 |
|
32 |
-
@spaces.GPU(duration=
|
33 |
def process_text(text):
|
34 |
"""Example GPU function - in reality, this might be model inference"""
|
35 |
time.sleep(10)
|
|
|
29 |
# Tell Gradio which paths are allowed to be served
|
30 |
os.environ["GRADIO_ALLOWED_PATHS"] = str(static_dir.resolve())
|
31 |
|
32 |
+
@spaces.GPU(duration=4*60) # Specify GPU duration in seconds, added for testing
|
33 |
def process_text(text):
|
34 |
"""Example GPU function - in reality, this might be model inference"""
|
35 |
time.sleep(10)
|