From b1bb4e67583b2023f81902ec4f241b33335daf34 Mon Sep 17 00:00:00 2001 From: utin-francis-peter Date: Thu, 20 Jun 2024 22:18:18 +0100 Subject: [PATCH] fix: uploading/training progress bar --- frontend/src/upload/Upload.tsx | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 7b426e19..a7246bc3 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -48,6 +48,26 @@ function Upload({ value: 'url', }); + function ProgressBar({ progress }: { progress: number }) { + return ( +
+
+
+ {progress >= 5 && `${progress}%`} +
+
+ {/*
*/} +
+ ); + } + function Progress({ title, isCancellable = false, @@ -64,15 +84,10 @@ function Upload({

Over the token limit, please consider uploading smaller document

-

{progress?.percentage || 0}%

+ {/*

{progress?.percentage || 0}%

*/} -
-
-
-
+ {/* progress bar */} +