mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 08:30:43 +00:00
refac
This commit is contained in:
parent
c0d4b828a0
commit
1752e2af67
BIN
header.png
BIN
header.png
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
15
main.py
15
main.py
@ -22,6 +22,21 @@ import logging
|
|||||||
|
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Load .env file
|
||||||
|
####################################
|
||||||
|
|
||||||
|
try:
|
||||||
|
from dotenv import load_dotenv, find_dotenv
|
||||||
|
|
||||||
|
load_dotenv(find_dotenv(".env"))
|
||||||
|
except ImportError:
|
||||||
|
print("dotenv not installed, skipping...")
|
||||||
|
|
||||||
|
|
||||||
PIPELINES = {}
|
PIPELINES = {}
|
||||||
PIPELINE_MODULES = {}
|
PIPELINE_MODULES = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user