File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121# Ensure the parent directory is in the path to import ModelFactory
2222sys .path .insert (0 , os .path .abspath (os .path .join (os .path .dirname (__file__ ), ".." )))
2323
24- import argparse
25- import logging
26- import asyncio
27- import time
24+ import argparse # noqa: E402
25+ import logging # noqa: E402
26+ import asyncio # noqa: E402
27+ import time # noqa: E402
2828
29- import pandas as pd
29+ import pandas as pd # noqa: E402
3030
3131# lighteval depends on `sentencepiece` and it only has prebuilt wheels for Python 3.11 or below
32- from lighteval .tasks .requests import Doc
33- from lighteval .metrics .metrics_sample import Extractiveness
32+ from lighteval .tasks .requests import Doc # noqa: E402
33+ from lighteval .metrics .metrics_sample import Extractiveness # noqa: E402
3434
35- from server .api .services .llm_services import ModelFactory
35+ from server .api .services .llm_services import ModelFactory # noqa: E402
3636
3737logging .basicConfig (
3838 level = logging .INFO , format = "%(asctime)s - %(levelname)s - %(message)s"
Original file line number Diff line number Diff line change 5858 path ("api/redoc/" , SpectacularRedocView .as_view (url_name = "schema" ), name = "redoc" ),
5959]
6060
61- import os
62- from django .conf import settings
63- from django .http import HttpResponseNotFound
61+ import os # noqa: E402
62+ from django .conf import settings # noqa: E402
63+ from django .http import HttpResponseNotFound # noqa: E402
6464
6565
6666def spa_fallback (request ):
You can’t perform that action at this time.
0 commit comments