DeepVen commited on
Commit
78b1acd
1 Parent(s): e890e0d

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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-large")
18
 
19
 
20
  @app.get("/generate")
21
  def generate(text: str):
22
  """
23
- deployed flan-t5-large model as backend
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"]}