Spaces:
Sleeping
Sleeping
Update main2.py
Browse files
main2.py
CHANGED
@@ -7,8 +7,6 @@ app = FastAPI()
|
|
7 |
# Initialize the text generation pipeline
|
8 |
# This function will be able to generate text
|
9 |
# given an input.
|
10 |
-
pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
11 |
-
|
12 |
summarizer = pipeline("summarization", model="google-t5/t5-base", tokenizer="google-t5/t5-base", framework="tf")
|
13 |
|
14 |
|
|
|
7 |
# Initialize the text generation pipeline
|
8 |
# This function will be able to generate text
|
9 |
# given an input.
|
|
|
|
|
10 |
summarizer = pipeline("summarization", model="google-t5/t5-base", tokenizer="google-t5/t5-base", framework="tf")
|
11 |
|
12 |
|