mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-02 17:00:28 +08:00
[FIX] Import on top
This commit is contained in:
@@ -2,6 +2,7 @@ from enum import Enum
|
||||
from typing import Any, Dict
|
||||
|
||||
import aiohttp
|
||||
from loguru import logger
|
||||
from oasst_backend.config import settings
|
||||
from oasst_shared.exceptions import OasstError, OasstErrorCode
|
||||
|
||||
@@ -51,7 +52,6 @@ class HuggingFaceAPI:
|
||||
async with session.post(self.api_url, headers=self.headers, json=payload) as response:
|
||||
# If we get a bad response
|
||||
if response.status != 200:
|
||||
from loguru import logger
|
||||
|
||||
logger.error(response)
|
||||
logger.info(self.headers)
|
||||
|
||||
Reference in New Issue
Block a user