nazimali commited on
Commit
8f8101a
1 Parent(s): 0888daa

Add zerogpu

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from functools import partial
2
  from pathlib import Path
3
-
4
  import gradio as gr
5
  from joeynmt.datasets import build_dataset
6
  from joeynmt.helpers import (
@@ -30,6 +30,7 @@ languages_scripts = {
30
  }
31
 
32
 
 
33
  def normalize(text, language_script):
34
  cfg_file = "./models/%s/config.yaml" % languages_scripts[language_script]
35
  ckpt = "./models/%s/best.ckpt" % languages_scripts[language_script]
 
1
  from functools import partial
2
  from pathlib import Path
3
+ import spaces
4
  import gradio as gr
5
  from joeynmt.datasets import build_dataset
6
  from joeynmt.helpers import (
 
30
  }
31
 
32
 
33
+ @spaces.GPU
34
  def normalize(text, language_script):
35
  cfg_file = "./models/%s/config.yaml" % languages_scripts[language_script]
36
  ckpt = "./models/%s/best.ckpt" % languages_scripts[language_script]