mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-20 02:16:39 +00:00
optimized imports
This commit is contained in:
1 parent
fb10a546d6
commit
f5e287ffa6
1 file changed
+3
-3
+3
-3
@@ -2,9 +2,10 @@ import asyncio
|
|||||||
import datetime
|
import datetime
|
||||||
import http.client
|
import http.client
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
import traceback
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
import traceback
|
||||||
|
|
||||||
import dotenv
|
import dotenv
|
||||||
import openai
|
import openai
|
||||||
@@ -50,7 +51,6 @@ if settings.LLM_NAME == "manifest":
|
|||||||
manifest = Manifest(client_name="huggingface", client_connection="http://127.0.0.1:5000")
|
manifest = Manifest(client_name="huggingface", client_connection="http://127.0.0.1:5000")
|
||||||
|
|
||||||
# Redirect PosixPath to WindowsPath on Windows
|
# Redirect PosixPath to WindowsPath on Windows
|
||||||
import platform
|
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|||||||
Reference in new issue
Block a user