From 2de4f0938dedf8a6b2d60886df5c59bce7c72f59 Mon Sep 17 00:00:00 2001 From: srichman333 Date: Tue, 23 Apr 2024 17:26:23 -0400 Subject: ui for filtered visualization from ai --- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/client/views/pdf') diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 686ef9c28..40946cd36 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -152,6 +152,10 @@ export class GPTPopup extends ObservableReactComponent { this.setLoading(false); }; + /** + * Completes an API call to generate a summary of + * this.selectedText in the popup. + */ generateSummary = async () => { GPTPopup.Instance.setVisible(true); GPTPopup.Instance.setMode(GPTPopupMode.SUMMARY); @@ -166,6 +170,10 @@ export class GPTPopup extends ObservableReactComponent { GPTPopup.Instance.setLoading(false); } + /** + * Completes an API call to generate an analysis of + * this.dataJson in the popup. + */ generateDataAnalysis = async () => { GPTPopup.Instance.setVisible(true); GPTPopup.Instance.setLoading(true); -- cgit v1.2.3-70-g09d2