r3gm commited on
Commit
2f76497
·
verified ·
1 Parent(s): e81a470

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -79,6 +79,15 @@ def extract_exif_data(image):
79
  # and return the exif bytes. For now, it does nothing.
80
  return None
81
 
 
 
 
 
 
 
 
 
 
82
 
83
  class UpscalerApp:
84
  def __init__(self, repo_id, filename, local_path, push_threshold):
@@ -370,15 +379,6 @@ class UpscalerApp:
370
  self.ui.launch(**kwargs)
371
 
372
 
373
- def on_gpu_configurable(duration=60):
374
- def decorator(func):
375
- @functools.wraps(func)
376
- @spaces.GPU(duration=duration)
377
- def wrapper(*args, **kwargs):
378
- return func(*args, **kwargs)
379
- return wrapper
380
- return decorator
381
-
382
  @spaces.GPU
383
  def dummy_gpu():
384
  return None
 
79
  # and return the exif bytes. For now, it does nothing.
80
  return None
81
 
82
+ def on_gpu_configurable(duration=60):
83
+ def decorator(func):
84
+ @functools.wraps(func)
85
+ @spaces.GPU(duration=duration)
86
+ def wrapper(*args, **kwargs):
87
+ return func(*args, **kwargs)
88
+ return wrapper
89
+ return decorator
90
+
91
 
92
  class UpscalerApp:
93
  def __init__(self, repo_id, filename, local_path, push_threshold):
 
379
  self.ui.launch(**kwargs)
380
 
381
 
 
 
 
 
 
 
 
 
 
382
  @spaces.GPU
383
  def dummy_gpu():
384
  return None