S01Nour
commited on
Commit
·
66ccc9d
1
Parent(s):
60af588
feat: Add FastAPI endpoint for text generation with request and response models.
Browse files- routes/generate.py +2 -1
routes/generate.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
"""Generation specific endpoints"""
|
| 2 |
|
| 3 |
-
from fastapi import APIRouter, HTTPException
|
|
|
|
| 4 |
from datetime import datetime
|
| 5 |
import logging
|
| 6 |
from typing import Optional
|
|
|
|
| 1 |
"""Generation specific endpoints"""
|
| 2 |
|
| 3 |
+
from fastapi import APIRouter, HTTPException
|
| 4 |
+
import pydantic
|
| 5 |
from datetime import datetime
|
| 6 |
import logging
|
| 7 |
from typing import Optional
|