lucapantea commited on
Commit
140ff41
1 Parent(s): 2424f87

swagger docs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from fastapi import FastAPI
2
  from transformers import pipeline
3
 
4
  # Create a FastAPI instance
5
- app = FastAPI()
6
 
7
  # Initialize the text generation pipeline
8
  pipe = pipeline('text2text-generation', model='google/flan-t5-small')
 
2
  from transformers import pipeline
3
 
4
  # Create a FastAPI instance
5
+ app = FastAPI(docs_url='/')
6
 
7
  # Initialize the text generation pipeline
8
  pipe = pipeline('text2text-generation', model='google/flan-t5-small')