Spaces:
Sleeping
Sleeping
Commit ·
1451cce
1
Parent(s): f0db057
fix: Add missing Field import from pydantic
Browse filesFixed NameError in ChatResponse model by adding Field to pydantic imports.
This resolves deployment error on Hugging Face Spaces.
- api_routes_v2.py +1 -1
api_routes_v2.py
CHANGED
|
@@ -402,7 +402,7 @@
|
|
| 402 |
|
| 403 |
from fastapi import APIRouter, HTTPException, UploadFile, File, Request, Form
|
| 404 |
from fastapi.responses import StreamingResponse
|
| 405 |
-
from pydantic import BaseModel
|
| 406 |
from typing import Optional, List, Dict, Any, Generator, Callable, Tuple
|
| 407 |
import json
|
| 408 |
import os
|
|
|
|
| 402 |
|
| 403 |
from fastapi import APIRouter, HTTPException, UploadFile, File, Request, Form
|
| 404 |
from fastapi.responses import StreamingResponse
|
| 405 |
+
from pydantic import BaseModel, Field
|
| 406 |
from typing import Optional, List, Dict, Any, Generator, Callable, Tuple
|
| 407 |
import json
|
| 408 |
import os
|