[Bugfix] fix ec dev command for hf spaces (#1168)
Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
@@ -11,14 +11,9 @@ import requests
|
|||||||
import yaml
|
import yaml
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
from embedchain.cache import (
|
from embedchain.cache import (Config, ExactMatchEvaluation,
|
||||||
Config,
|
SearchDistanceEvaluation, cache,
|
||||||
ExactMatchEvaluation,
|
gptcache_data_manager, gptcache_pre_function)
|
||||||
SearchDistanceEvaluation,
|
|
||||||
cache,
|
|
||||||
gptcache_data_manager,
|
|
||||||
gptcache_pre_function,
|
|
||||||
)
|
|
||||||
from embedchain.client import Client
|
from embedchain.client import Client
|
||||||
from embedchain.config import AppConfig, CacheConfig, ChunkerConfig
|
from embedchain.config import AppConfig, CacheConfig, ChunkerConfig
|
||||||
from embedchain.constants import SQLITE_PATH
|
from embedchain.constants import SQLITE_PATH
|
||||||
@@ -26,7 +21,8 @@ from embedchain.embedchain import EmbedChain
|
|||||||
from embedchain.embedder.base import BaseEmbedder
|
from embedchain.embedder.base import BaseEmbedder
|
||||||
from embedchain.embedder.openai import OpenAIEmbedder
|
from embedchain.embedder.openai import OpenAIEmbedder
|
||||||
from embedchain.evaluation.base import BaseMetric
|
from embedchain.evaluation.base import BaseMetric
|
||||||
from embedchain.evaluation.metrics import AnswerRelevance, ContextRelevance, Groundedness
|
from embedchain.evaluation.metrics import (AnswerRelevance, ContextRelevance,
|
||||||
|
Groundedness)
|
||||||
from embedchain.factory import EmbedderFactory, LlmFactory, VectorDBFactory
|
from embedchain.factory import EmbedderFactory, LlmFactory, VectorDBFactory
|
||||||
from embedchain.helpers.json_serializable import register_deserializable
|
from embedchain.helpers.json_serializable import register_deserializable
|
||||||
from embedchain.llm.base import BaseLlm
|
from embedchain.llm.base import BaseLlm
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ def dev(debug, host, port):
|
|||||||
run_dev_modal_com()
|
run_dev_modal_com()
|
||||||
elif template == "render.com":
|
elif template == "render.com":
|
||||||
run_dev_render_com(debug, host, port)
|
run_dev_render_com(debug, host, port)
|
||||||
elif template == "streamlit.io" or template == "hf/streamlit.app":
|
elif template == "streamlit.io" or template == "hf/streamlit.io":
|
||||||
run_dev_streamlit_io()
|
run_dev_streamlit_io()
|
||||||
elif template == "gradio.app" or template == "hf/gradio.app":
|
elif template == "gradio.app" or template == "hf/gradio.app":
|
||||||
run_dev_gradio()
|
run_dev_gradio()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "embedchain"
|
name = "embedchain"
|
||||||
version = "0.1.64"
|
version = "0.1.65"
|
||||||
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
||||||
authors = [
|
authors = [
|
||||||
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
||||||
|
|||||||
Reference in New Issue
Block a user