Benson commited on
Commit
3600d18
1 Parent(s): f138a0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ gpu = 0 if torch.cuda.is_available() else -1
12
  # Initialize the text generation pipeline
13
  # This function will be able to generate text
14
  # given an input.
15
- pipe = pipeline("text2text-generation", model="google/flan-t5-small",device=gpu)
16
 
17
  # Define a function to handle the GET request at `/generate`
18
  # The generate() function is defined as a FastAPI route that takes a
 
12
  # Initialize the text generation pipeline
13
  # This function will be able to generate text
14
  # given an input.
15
+ pipe = pipeline("text2text-generation", model="tiiuae/falcon-40b-instruct",device=gpu)
16
 
17
  # Define a function to handle the GET request at `/generate`
18
  # The generate() function is defined as a FastAPI route that takes a