Spaces:
Paused
Paused
Upload main.py
Browse files
main.py
CHANGED
|
@@ -14,13 +14,13 @@ embeddings.load('index')
|
|
| 14 |
# Create extractor instance
|
| 15 |
extractor = Extractor(embeddings, "google/flan-t5-base")
|
| 16 |
|
| 17 |
-
pipe = pipeline("text2text-generation", model="google/flan-t5-
|
| 18 |
|
| 19 |
|
| 20 |
@app.get("/generate")
|
| 21 |
def generate(text: str):
|
| 22 |
"""
|
| 23 |
-
deployed flan-t5-
|
| 24 |
"""
|
| 25 |
output = pipe(text)
|
| 26 |
return {"output": output[0]["generated_text"]}
|
|
|
|
| 14 |
# Create extractor instance
|
| 15 |
extractor = Extractor(embeddings, "google/flan-t5-base")
|
| 16 |
|
| 17 |
+
pipe = pipeline("text2text-generation", model="google/flan-t5-xxl")
|
| 18 |
|
| 19 |
|
| 20 |
@app.get("/generate")
|
| 21 |
def generate(text: str):
|
| 22 |
"""
|
| 23 |
+
deployed flan-t5-xxl model as backend
|
| 24 |
"""
|
| 25 |
output = pipe(text)
|
| 26 |
return {"output": output[0]["generated_text"]}
|