sam0ed commited on
Commit
efe3c7e
·
verified ·
1 Parent(s): 9749e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -3,6 +3,14 @@ from transformers import pipeline
3
 
4
  # Create a new FastAPI app instance
5
  app = FastAPI()
 
 
 
 
 
 
 
 
6
 
7
  # Initialize the text generation pipeline
8
  # This function will be able to generate text
 
3
 
4
  # Create a new FastAPI app instance
5
  app = FastAPI()
6
+
7
+ app = FastAPI(
8
+ title="Text Generation API",
9
+ description="API for generating text using transformers",
10
+ docs_url="/", # Swagger UI will be at http://your-host:port/
11
+ redoc_url="/redoc", # ReDoc will be at http://your-host:port/redoc (optional)
12
+ openapi_url="/openapi.json"
13
+ )
14
 
15
  # Initialize the text generation pipeline
16
  # This function will be able to generate text