MunirAbobaker commited on
Commit
adc71e3
·
1 Parent(s): af09906
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,5 +1,4 @@
1
  from fastapi import FastAPI
2
-
3
  from transformers import pipeline
4
 
5
  # Create a new FastAPI app instance
@@ -22,6 +21,7 @@ def generate(text: str):
22
  from the given input text. The model used is `google/flan-t5-small`, which
23
  can be found [here](<https://huggingface.co/google/flan-t5-small>).
24
  """
 
25
  # Use the pipeline to generate text from the given input text
26
  output = pipe(text)
27
 
 
1
  from fastapi import FastAPI
 
2
  from transformers import pipeline
3
 
4
  # Create a new FastAPI app instance
 
21
  from the given input text. The model used is `google/flan-t5-small`, which
22
  can be found [here](<https://huggingface.co/google/flan-t5-small>).
23
  """
24
+ print("text: ", text)
25
  # Use the pipeline to generate text from the given input text
26
  output = pipe(text)
27