diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2024-04-23 17:26:23 -0400 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2024-04-23 17:26:23 -0400 |
| commit | 2de4f0938dedf8a6b2d60886df5c59bce7c72f59 (patch) | |
| tree | 45afbc5f1200d0f09a24c87a70c2caa142579a32 /src/client/views/pdf | |
| parent | 736e4f7109ab35f47892e3563b877e9eca7c6d91 (diff) | |
ui for filtered visualization from ai
Diffstat (limited to 'src/client/views/pdf')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
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<GPTPopupProps> { 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<GPTPopupProps> { 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); |
