fruitpicker01 commited on
Commit
266ec2e
·
verified ·
1 Parent(s): acc030b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,6 +18,7 @@ import io
18
  from datetime import datetime, timedelta
19
  import plotly.express as px
20
  import torch
 
21
 
22
  if not torch.cuda.is_available():
23
  raise RuntimeError("GPU not available. ZeroGPU initialization failed.")
@@ -456,7 +457,7 @@ def update_download_link():
456
  else:
457
  return link, "", "", None, None, None, None
458
 
459
-
460
  def correct_dash_usage(text):
461
  morph = pymorphy2.MorphAnalyzer()
462
  # Step 1: Replace any dash with long dash if surrounded by spaces
 
18
  from datetime import datetime, timedelta
19
  import plotly.express as px
20
  import torch
21
+ import spaces
22
 
23
  if not torch.cuda.is_available():
24
  raise RuntimeError("GPU not available. ZeroGPU initialization failed.")
 
457
  else:
458
  return link, "", "", None, None, None, None
459
 
460
+ @spaces.GPU
461
  def correct_dash_usage(text):
462
  morph = pymorphy2.MorphAnalyzer()
463
  # Step 1: Replace any dash with long dash if surrounded by spaces