PunGrumpy commited on
Commit
4e79682
Β·
1 Parent(s): 6a8a8c9

πŸ› fix: change path

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model="google/flan-t5-small")
14
  # The generate() function is defined as a FastAPI route that takes a
15
  # string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response
16
  # containing the generated text under the key "output"
17
- @app.get("/generate")
18
  def generate(text: str):
19
  """
20
  Using the text2text-generation pipeline from `transformers`, generate text
 
14
  # The generate() function is defined as a FastAPI route that takes a
15
  # string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response
16
  # containing the generated text under the key "output"
17
+ @app.get("/")
18
  def generate(text: str):
19
  """
20
  Using the text2text-generation pipeline from `transformers`, generate text