NeoPy commited on
Commit
c9e4925
·
verified ·
1 Parent(s): 12ccecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -10,6 +10,7 @@ model = T5ForConditionalGeneration.from_pretrained(MODEL_NAME)
10
  print("Model loaded!")
11
 
12
 
 
13
  def translate(text, prompt):
14
  """
15
  Translate text using T5 with a task prefix.
 
10
  print("Model loaded!")
11
 
12
 
13
+ @app.get("/translate")
14
  def translate(text, prompt):
15
  """
16
  Translate text using T5 with a task prefix.