yash-srivastava19 commited on
Commit
b52fe60
·
1 Parent(s): 98236f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  from fastapi import FastAPI
2
  from transformers import pipeline
3
 
4
- app = FastAPI()
5
 
6
- pipe = pipeline('text2text-generation', model = 'google/flan-t5-small')
7
 
8
 
9
  @app.get('/generate')
 
1
  from fastapi import FastAPI
2
  from transformers import pipeline
3
 
4
+ app = FastAPI(docs_url="/")
5
 
6
+ pipe = pipeline("text2text-generation", model = "google/flan-t5-small")
7
 
8
 
9
  @app.get('/generate')