Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jagadeeswaran-zipstack committed Jun 20, 2024
1 parent 6a9ffe7 commit 87472f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def handle_prompt_output_update(
outputs (Any): Outputs corresponding to the prompts.
document_id (str): ID of the document.
profile_manager_id (Optional[str]): UUID of the profile manager.
is_single_pass_extract (bool): Flag indicating if single pass extract is active.
is_single_pass_extract (bool):
Flag indicating if single pass extract is active.
tool (CustomTool, optional): Custom tool used for extracting.
"""

Expand Down Expand Up @@ -75,11 +76,13 @@ def update_or_create_prompt_output(

if success:
logger.info(
f"Created record for prompt_id: {prompt.prompt_id} and profile {profile_manager.profile_id}"
f"Created record for prompt_id: {prompt.prompt_id} and "
f"profile {profile_manager.profile_id}"
)
else:
logger.info(
f"Updated record for prompt_id: {prompt.prompt_id} and profile {profile_manager.profile_id}"
f"Updated record for prompt_id: {prompt.prompt_id} and "
f"profile {profile_manager.profile_id}"
)

args: dict[str, str] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ import TabPane from "antd/es/tabs/TabPane";
import { TextViewerPre } from "../text-viewer-pre/TextViewerPre";
import "./PromptCard.css";
import { SpinnerLoader } from "../../widgets/spinner-loader/SpinnerLoader";
import { useExceptionHandler } from "../../../hooks/useExceptionHandler";
import { useAlertStore } from "../../../store/alert-store";

function OutputForIndex({ llmProfileId, isIndexOpen, setIsIndexOpen }) {
const [data, setData] = useState(null);
const [loading, setLoading] = useState(false);
const { sessionDetails } = useSessionStore();
const axiosPrivate = useAxiosPrivate();
const handleException = useExceptionHandler();
const { setAlertDetails } = useAlertStore();

const fetchData = () => {
setLoading(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import { useAxiosPrivate } from "../../../hooks/useAxiosPrivate";
import { useSessionStore } from "../../../store/session-store";
import { motion, AnimatePresence } from "framer-motion";
import { OutputForIndex } from "./OutputForIndex";
import { useExceptionHandler } from "../../../hooks/useExceptionHandler";
import { useAlertStore } from "../../../store/alert-store";

const EvalBtn = null;
const EvalMetrics = null;
Expand Down Expand Up @@ -107,6 +109,8 @@ function PromptCardItems({
const privateAxios = useAxiosPrivate();
const { sessionDetails } = useSessionStore();
const { width: windowWidth } = useWindowDimensions();
const handleException = useExceptionHandler();
const { setAlertDetails } = useAlertStore();
const componentWidth = windowWidth * 0.4;

const divRef = useRef(null);
Expand Down

0 comments on commit 87472f4

Please sign in to comment.