xulh
commited on
Commit
·
547efa7
1
Parent(s):
73400df
代码初始化
Browse files- inference/apiModel.py +2 -2
inference/apiModel.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
from
|
2 |
|
3 |
from pydantic import BaseModel
|
4 |
|
5 |
|
6 |
class Payload(BaseModel):
|
7 |
-
input: str
|
|
|
1 |
+
from typing import Optional
|
2 |
|
3 |
from pydantic import BaseModel
|
4 |
|
5 |
|
6 |
class Payload(BaseModel):
|
7 |
+
input: Optional[str]
|