From 7444f59e3ce706978824415f28e2b376881b8c24 Mon Sep 17 00:00:00 2001 From: Deven Patel Date: Sun, 14 Jan 2024 08:36:23 +0530 Subject: [PATCH] [Bugfix] fix ec dev command for hf spaces (#1168) Co-authored-by: Deven Patel --- embedchain/app.py | 14 +++++--------- embedchain/cli.py | 2 +- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/embedchain/app.py b/embedchain/app.py index 966f5b6e..e2f931ca 100644 --- a/embedchain/app.py +++ b/embedchain/app.py @@ -11,14 +11,9 @@ import requests import yaml from tqdm import tqdm -from embedchain.cache import ( - Config, - ExactMatchEvaluation, - SearchDistanceEvaluation, - cache, - gptcache_data_manager, - gptcache_pre_function, -) +from embedchain.cache import (Config, ExactMatchEvaluation, + SearchDistanceEvaluation, cache, + gptcache_data_manager, gptcache_pre_function) from embedchain.client import Client from embedchain.config import AppConfig, CacheConfig, ChunkerConfig from embedchain.constants import SQLITE_PATH @@ -26,7 +21,8 @@ from embedchain.embedchain import EmbedChain from embedchain.embedder.base import BaseEmbedder from embedchain.embedder.openai import OpenAIEmbedder 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.helpers.json_serializable import register_deserializable from embedchain.llm.base import BaseLlm diff --git a/embedchain/cli.py b/embedchain/cli.py index c573382b..3ced1afd 100644 --- a/embedchain/cli.py +++ b/embedchain/cli.py @@ -292,7 +292,7 @@ def dev(debug, host, port): run_dev_modal_com() elif template == "render.com": 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() elif template == "gradio.app" or template == "hf/gradio.app": run_dev_gradio() diff --git a/pyproject.toml b/pyproject.toml index 431f8324..4abe8d80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.1.64" +version = "0.1.65" description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data" authors = [ "Taranjeet Singh ",