diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2024-04-16 17:02:23 -0400 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2024-04-16 17:02:23 -0400 |
| commit | b98f3cb1c0e356c318e4d629e8baa05648c153e2 (patch) | |
| tree | 874a30d28aa6521f6ebd620715199c0b18a48ccf /src/client/views/pdf/GPTPopup | |
| parent | 982991ca69cd7f844680949ed160e678f89050fc (diff) | |
makes histogram on transfer to text
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 50835a541..706b44aef 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -30,6 +30,7 @@ interface GPTPopupProps {} export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { static Instance: GPTPopup; @observable private chatMode: boolean = false; + private correlatedColumns: string[] = [] @observable public visible: boolean = false; @@ -173,7 +174,9 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { console.log(res) let json = JSON.parse(res! as string); const keys = Object.keys(json) - console.log(json[keys[0]], json[keys[1]]) + this.correlatedColumns = [] + this.correlatedColumns.push(json[keys[0]]) + this.correlatedColumns.push(json[keys[1]]) GPTPopup.Instance.setText(json[keys[2]] || 'Something went wrong.'); } catch (err) { console.error(err); @@ -199,7 +202,7 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { }); } - this.createFilteredDoc(); + this.createFilteredDoc(this.correlatedColumns); }; /** |
