grv805 commited on
Commit
b711e66
·
verified ·
1 Parent(s): abb8b3f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ from transformers import pipeline
5
  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
- pipe=pipeline("text-generation", model="HuggingFaceTB/SmolLM2-1.7B-Instruct")
11
 
12
  @app.get("/")
13
  def home():
 
5
  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
+ #pipe=pipeline("text-generation", model="HuggingFaceTB/SmolLM2-1.7B-Instruct")
11
 
12
  @app.get("/")
13
  def home():