grv805 commited on
Commit
d3e0743
·
verified ·
1 Parent(s): 46fa340

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ app=FastAPI()
6
 
7
  # Initialize the text generation pipeline
8
  #pipe = pipeline("text2text-generation", model="google/flan-t5-small")
9
- pipe = pipeline("text-generation", model="openai-community/gpt2")
 
10
 
11
  @app.get("/")
12
  def home():
 
6
 
7
  # Initialize the text generation pipeline
8
  #pipe = pipeline("text2text-generation", model="google/flan-t5-small")
9
+ #pipe = pipeline("text-generation", model="openai-community/gpt2")
10
+ pipe=pipeline("text-generation", model="google/gemma-2-2b")
11
 
12
  @app.get("/")
13
  def home():