m7n commited on
Commit
4f1d82c
·
verified ·
1 Parent(s): 1ec481d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=2*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)
 
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)