tonic commited on
Commit
553c8dd
·
2 Parent(s): 2ad5eb7 2704176

Merge branch 'main' of https://github.com/Josephrp/here-chat

Browse files
package-lock.json CHANGED
@@ -18,9 +18,11 @@
18
  "@mui/material": "5.12.0",
19
  "@radix-ui/react-icons": "^1.3.0",
20
  "@radix-ui/react-slot": "^1.0.2",
 
21
  "@types/node": "20.1.4",
22
  "@types/react": "18.2.6",
23
  "@types/react-dom": "18.2.4",
 
24
  "class-variance-authority": "^0.7.0",
25
  "clsx": "^2.0.0",
26
  "eslint": "8.40.0",
@@ -397,6 +399,40 @@
397
  "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
398
  }
399
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  "node_modules/@huggingface/inference": {
401
  "version": "2.3.3",
402
  "resolved": "https://registry.npmjs.org/@huggingface/inference/-/inference-2.3.3.tgz",
@@ -983,6 +1019,37 @@
983
  "url": "https://opencollective.com/popperjs"
984
  }
985
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
986
  "node_modules/@radix-ui/react-compose-refs": {
987
  "version": "1.0.1",
988
  "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz",
@@ -1000,6 +1067,50 @@
1000
  }
1001
  }
1002
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  "node_modules/@radix-ui/react-icons": {
1004
  "version": "1.3.0",
1005
  "resolved": "https://registry.npmjs.org/@radix-ui/react-icons/-/react-icons-1.3.0.tgz",
@@ -1008,6 +1119,126 @@
1008
  "react": "^16.x || ^17.x || ^18.x"
1009
  }
1010
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1011
  "node_modules/@radix-ui/react-slot": {
1012
  "version": "1.0.2",
1013
  "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",
@@ -1026,6 +1257,177 @@
1026
  }
1027
  }
1028
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1029
  "node_modules/@rushstack/eslint-patch": {
1030
  "version": "1.2.0",
1031
  "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz",
@@ -1384,6 +1786,11 @@
1384
  "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
1385
  "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
1386
  },
 
 
 
 
 
1387
  "node_modules/autoprefixer": {
1388
  "version": "10.4.16",
1389
  "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz",
@@ -1440,6 +1847,16 @@
1440
  "node": ">=4"
1441
  }
1442
  },
 
 
 
 
 
 
 
 
 
 
1443
  "node_modules/axobject-query": {
1444
  "version": "3.1.1",
1445
  "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
@@ -1715,6 +2132,17 @@
1715
  "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1716
  "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
1717
  },
 
 
 
 
 
 
 
 
 
 
 
1718
  "node_modules/commander": {
1719
  "version": "4.1.1",
1720
  "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
@@ -1894,6 +2322,14 @@
1894
  "url": "https://github.com/sponsors/ljharb"
1895
  }
1896
  },
 
 
 
 
 
 
 
 
1897
  "node_modules/didyoumean": {
1898
  "version": "1.2.2",
1899
  "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
@@ -2677,6 +3113,25 @@
2677
  "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
2678
  "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
2679
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2680
  "node_modules/for-each": {
2681
  "version": "0.3.3",
2682
  "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
@@ -2685,6 +3140,19 @@
2685
  "is-callable": "^1.1.3"
2686
  }
2687
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
2688
  "node_modules/fraction.js": {
2689
  "version": "4.3.7",
2690
  "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -3591,6 +4059,25 @@
3591
  "node": ">=8.6"
3592
  }
3593
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3594
  "node_modules/mimic-fn": {
3595
  "version": "4.0.0",
3596
  "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
@@ -4247,6 +4734,11 @@
4247
  "react-is": "^16.13.1"
4248
  }
4249
  },
 
 
 
 
 
4250
  "node_modules/punycode": {
4251
  "version": "2.3.0",
4252
  "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
 
18
  "@mui/material": "5.12.0",
19
  "@radix-ui/react-icons": "^1.3.0",
20
  "@radix-ui/react-slot": "^1.0.2",
21
+ "@radix-ui/react-tooltip": "^1.0.7",
22
  "@types/node": "20.1.4",
23
  "@types/react": "18.2.6",
24
  "@types/react-dom": "18.2.4",
25
+ "axios": "^1.6.1",
26
  "class-variance-authority": "^0.7.0",
27
  "clsx": "^2.0.0",
28
  "eslint": "8.40.0",
 
399
  "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
400
  }
401
  },
402
+ "node_modules/@floating-ui/core": {
403
+ "version": "1.5.0",
404
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz",
405
+ "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==",
406
+ "dependencies": {
407
+ "@floating-ui/utils": "^0.1.3"
408
+ }
409
+ },
410
+ "node_modules/@floating-ui/dom": {
411
+ "version": "1.5.3",
412
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz",
413
+ "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==",
414
+ "dependencies": {
415
+ "@floating-ui/core": "^1.4.2",
416
+ "@floating-ui/utils": "^0.1.3"
417
+ }
418
+ },
419
+ "node_modules/@floating-ui/react-dom": {
420
+ "version": "2.0.4",
421
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.4.tgz",
422
+ "integrity": "sha512-CF8k2rgKeh/49UrnIBs4BdxPUV6vize/Db1d/YbCLyp9GiVZ0BEwf5AiDSxJRCr6yOkGqTFHtmrULxkEfYZ7dQ==",
423
+ "dependencies": {
424
+ "@floating-ui/dom": "^1.5.1"
425
+ },
426
+ "peerDependencies": {
427
+ "react": ">=16.8.0",
428
+ "react-dom": ">=16.8.0"
429
+ }
430
+ },
431
+ "node_modules/@floating-ui/utils": {
432
+ "version": "0.1.6",
433
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz",
434
+ "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A=="
435
+ },
436
  "node_modules/@huggingface/inference": {
437
  "version": "2.3.3",
438
  "resolved": "https://registry.npmjs.org/@huggingface/inference/-/inference-2.3.3.tgz",
 
1019
  "url": "https://opencollective.com/popperjs"
1020
  }
1021
  },
1022
+ "node_modules/@radix-ui/primitive": {
1023
+ "version": "1.0.1",
1024
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz",
1025
+ "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==",
1026
+ "dependencies": {
1027
+ "@babel/runtime": "^7.13.10"
1028
+ }
1029
+ },
1030
+ "node_modules/@radix-ui/react-arrow": {
1031
+ "version": "1.0.3",
1032
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.3.tgz",
1033
+ "integrity": "sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==",
1034
+ "dependencies": {
1035
+ "@babel/runtime": "^7.13.10",
1036
+ "@radix-ui/react-primitive": "1.0.3"
1037
+ },
1038
+ "peerDependencies": {
1039
+ "@types/react": "*",
1040
+ "@types/react-dom": "*",
1041
+ "react": "^16.8 || ^17.0 || ^18.0",
1042
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1043
+ },
1044
+ "peerDependenciesMeta": {
1045
+ "@types/react": {
1046
+ "optional": true
1047
+ },
1048
+ "@types/react-dom": {
1049
+ "optional": true
1050
+ }
1051
+ }
1052
+ },
1053
  "node_modules/@radix-ui/react-compose-refs": {
1054
  "version": "1.0.1",
1055
  "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz",
 
1067
  }
1068
  }
1069
  },
1070
+ "node_modules/@radix-ui/react-context": {
1071
+ "version": "1.0.1",
1072
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz",
1073
+ "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==",
1074
+ "dependencies": {
1075
+ "@babel/runtime": "^7.13.10"
1076
+ },
1077
+ "peerDependencies": {
1078
+ "@types/react": "*",
1079
+ "react": "^16.8 || ^17.0 || ^18.0"
1080
+ },
1081
+ "peerDependenciesMeta": {
1082
+ "@types/react": {
1083
+ "optional": true
1084
+ }
1085
+ }
1086
+ },
1087
+ "node_modules/@radix-ui/react-dismissable-layer": {
1088
+ "version": "1.0.5",
1089
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",
1090
+ "integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==",
1091
+ "dependencies": {
1092
+ "@babel/runtime": "^7.13.10",
1093
+ "@radix-ui/primitive": "1.0.1",
1094
+ "@radix-ui/react-compose-refs": "1.0.1",
1095
+ "@radix-ui/react-primitive": "1.0.3",
1096
+ "@radix-ui/react-use-callback-ref": "1.0.1",
1097
+ "@radix-ui/react-use-escape-keydown": "1.0.3"
1098
+ },
1099
+ "peerDependencies": {
1100
+ "@types/react": "*",
1101
+ "@types/react-dom": "*",
1102
+ "react": "^16.8 || ^17.0 || ^18.0",
1103
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1104
+ },
1105
+ "peerDependenciesMeta": {
1106
+ "@types/react": {
1107
+ "optional": true
1108
+ },
1109
+ "@types/react-dom": {
1110
+ "optional": true
1111
+ }
1112
+ }
1113
+ },
1114
  "node_modules/@radix-ui/react-icons": {
1115
  "version": "1.3.0",
1116
  "resolved": "https://registry.npmjs.org/@radix-ui/react-icons/-/react-icons-1.3.0.tgz",
 
1119
  "react": "^16.x || ^17.x || ^18.x"
1120
  }
1121
  },
1122
+ "node_modules/@radix-ui/react-id": {
1123
+ "version": "1.0.1",
1124
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz",
1125
+ "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==",
1126
+ "dependencies": {
1127
+ "@babel/runtime": "^7.13.10",
1128
+ "@radix-ui/react-use-layout-effect": "1.0.1"
1129
+ },
1130
+ "peerDependencies": {
1131
+ "@types/react": "*",
1132
+ "react": "^16.8 || ^17.0 || ^18.0"
1133
+ },
1134
+ "peerDependenciesMeta": {
1135
+ "@types/react": {
1136
+ "optional": true
1137
+ }
1138
+ }
1139
+ },
1140
+ "node_modules/@radix-ui/react-popper": {
1141
+ "version": "1.1.3",
1142
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.3.tgz",
1143
+ "integrity": "sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==",
1144
+ "dependencies": {
1145
+ "@babel/runtime": "^7.13.10",
1146
+ "@floating-ui/react-dom": "^2.0.0",
1147
+ "@radix-ui/react-arrow": "1.0.3",
1148
+ "@radix-ui/react-compose-refs": "1.0.1",
1149
+ "@radix-ui/react-context": "1.0.1",
1150
+ "@radix-ui/react-primitive": "1.0.3",
1151
+ "@radix-ui/react-use-callback-ref": "1.0.1",
1152
+ "@radix-ui/react-use-layout-effect": "1.0.1",
1153
+ "@radix-ui/react-use-rect": "1.0.1",
1154
+ "@radix-ui/react-use-size": "1.0.1",
1155
+ "@radix-ui/rect": "1.0.1"
1156
+ },
1157
+ "peerDependencies": {
1158
+ "@types/react": "*",
1159
+ "@types/react-dom": "*",
1160
+ "react": "^16.8 || ^17.0 || ^18.0",
1161
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1162
+ },
1163
+ "peerDependenciesMeta": {
1164
+ "@types/react": {
1165
+ "optional": true
1166
+ },
1167
+ "@types/react-dom": {
1168
+ "optional": true
1169
+ }
1170
+ }
1171
+ },
1172
+ "node_modules/@radix-ui/react-portal": {
1173
+ "version": "1.0.4",
1174
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz",
1175
+ "integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==",
1176
+ "dependencies": {
1177
+ "@babel/runtime": "^7.13.10",
1178
+ "@radix-ui/react-primitive": "1.0.3"
1179
+ },
1180
+ "peerDependencies": {
1181
+ "@types/react": "*",
1182
+ "@types/react-dom": "*",
1183
+ "react": "^16.8 || ^17.0 || ^18.0",
1184
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1185
+ },
1186
+ "peerDependenciesMeta": {
1187
+ "@types/react": {
1188
+ "optional": true
1189
+ },
1190
+ "@types/react-dom": {
1191
+ "optional": true
1192
+ }
1193
+ }
1194
+ },
1195
+ "node_modules/@radix-ui/react-presence": {
1196
+ "version": "1.0.1",
1197
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz",
1198
+ "integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==",
1199
+ "dependencies": {
1200
+ "@babel/runtime": "^7.13.10",
1201
+ "@radix-ui/react-compose-refs": "1.0.1",
1202
+ "@radix-ui/react-use-layout-effect": "1.0.1"
1203
+ },
1204
+ "peerDependencies": {
1205
+ "@types/react": "*",
1206
+ "@types/react-dom": "*",
1207
+ "react": "^16.8 || ^17.0 || ^18.0",
1208
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1209
+ },
1210
+ "peerDependenciesMeta": {
1211
+ "@types/react": {
1212
+ "optional": true
1213
+ },
1214
+ "@types/react-dom": {
1215
+ "optional": true
1216
+ }
1217
+ }
1218
+ },
1219
+ "node_modules/@radix-ui/react-primitive": {
1220
+ "version": "1.0.3",
1221
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz",
1222
+ "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==",
1223
+ "dependencies": {
1224
+ "@babel/runtime": "^7.13.10",
1225
+ "@radix-ui/react-slot": "1.0.2"
1226
+ },
1227
+ "peerDependencies": {
1228
+ "@types/react": "*",
1229
+ "@types/react-dom": "*",
1230
+ "react": "^16.8 || ^17.0 || ^18.0",
1231
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1232
+ },
1233
+ "peerDependenciesMeta": {
1234
+ "@types/react": {
1235
+ "optional": true
1236
+ },
1237
+ "@types/react-dom": {
1238
+ "optional": true
1239
+ }
1240
+ }
1241
+ },
1242
  "node_modules/@radix-ui/react-slot": {
1243
  "version": "1.0.2",
1244
  "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",
 
1257
  }
1258
  }
1259
  },
1260
+ "node_modules/@radix-ui/react-tooltip": {
1261
+ "version": "1.0.7",
1262
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.0.7.tgz",
1263
+ "integrity": "sha512-lPh5iKNFVQ/jav/j6ZrWq3blfDJ0OH9R6FlNUHPMqdLuQ9vwDgFsRxvl8b7Asuy5c8xmoojHUxKHQSOAvMHxyw==",
1264
+ "dependencies": {
1265
+ "@babel/runtime": "^7.13.10",
1266
+ "@radix-ui/primitive": "1.0.1",
1267
+ "@radix-ui/react-compose-refs": "1.0.1",
1268
+ "@radix-ui/react-context": "1.0.1",
1269
+ "@radix-ui/react-dismissable-layer": "1.0.5",
1270
+ "@radix-ui/react-id": "1.0.1",
1271
+ "@radix-ui/react-popper": "1.1.3",
1272
+ "@radix-ui/react-portal": "1.0.4",
1273
+ "@radix-ui/react-presence": "1.0.1",
1274
+ "@radix-ui/react-primitive": "1.0.3",
1275
+ "@radix-ui/react-slot": "1.0.2",
1276
+ "@radix-ui/react-use-controllable-state": "1.0.1",
1277
+ "@radix-ui/react-visually-hidden": "1.0.3"
1278
+ },
1279
+ "peerDependencies": {
1280
+ "@types/react": "*",
1281
+ "@types/react-dom": "*",
1282
+ "react": "^16.8 || ^17.0 || ^18.0",
1283
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1284
+ },
1285
+ "peerDependenciesMeta": {
1286
+ "@types/react": {
1287
+ "optional": true
1288
+ },
1289
+ "@types/react-dom": {
1290
+ "optional": true
1291
+ }
1292
+ }
1293
+ },
1294
+ "node_modules/@radix-ui/react-use-callback-ref": {
1295
+ "version": "1.0.1",
1296
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz",
1297
+ "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==",
1298
+ "dependencies": {
1299
+ "@babel/runtime": "^7.13.10"
1300
+ },
1301
+ "peerDependencies": {
1302
+ "@types/react": "*",
1303
+ "react": "^16.8 || ^17.0 || ^18.0"
1304
+ },
1305
+ "peerDependenciesMeta": {
1306
+ "@types/react": {
1307
+ "optional": true
1308
+ }
1309
+ }
1310
+ },
1311
+ "node_modules/@radix-ui/react-use-controllable-state": {
1312
+ "version": "1.0.1",
1313
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz",
1314
+ "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==",
1315
+ "dependencies": {
1316
+ "@babel/runtime": "^7.13.10",
1317
+ "@radix-ui/react-use-callback-ref": "1.0.1"
1318
+ },
1319
+ "peerDependencies": {
1320
+ "@types/react": "*",
1321
+ "react": "^16.8 || ^17.0 || ^18.0"
1322
+ },
1323
+ "peerDependenciesMeta": {
1324
+ "@types/react": {
1325
+ "optional": true
1326
+ }
1327
+ }
1328
+ },
1329
+ "node_modules/@radix-ui/react-use-escape-keydown": {
1330
+ "version": "1.0.3",
1331
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz",
1332
+ "integrity": "sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==",
1333
+ "dependencies": {
1334
+ "@babel/runtime": "^7.13.10",
1335
+ "@radix-ui/react-use-callback-ref": "1.0.1"
1336
+ },
1337
+ "peerDependencies": {
1338
+ "@types/react": "*",
1339
+ "react": "^16.8 || ^17.0 || ^18.0"
1340
+ },
1341
+ "peerDependenciesMeta": {
1342
+ "@types/react": {
1343
+ "optional": true
1344
+ }
1345
+ }
1346
+ },
1347
+ "node_modules/@radix-ui/react-use-layout-effect": {
1348
+ "version": "1.0.1",
1349
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz",
1350
+ "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==",
1351
+ "dependencies": {
1352
+ "@babel/runtime": "^7.13.10"
1353
+ },
1354
+ "peerDependencies": {
1355
+ "@types/react": "*",
1356
+ "react": "^16.8 || ^17.0 || ^18.0"
1357
+ },
1358
+ "peerDependenciesMeta": {
1359
+ "@types/react": {
1360
+ "optional": true
1361
+ }
1362
+ }
1363
+ },
1364
+ "node_modules/@radix-ui/react-use-rect": {
1365
+ "version": "1.0.1",
1366
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.0.1.tgz",
1367
+ "integrity": "sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==",
1368
+ "dependencies": {
1369
+ "@babel/runtime": "^7.13.10",
1370
+ "@radix-ui/rect": "1.0.1"
1371
+ },
1372
+ "peerDependencies": {
1373
+ "@types/react": "*",
1374
+ "react": "^16.8 || ^17.0 || ^18.0"
1375
+ },
1376
+ "peerDependenciesMeta": {
1377
+ "@types/react": {
1378
+ "optional": true
1379
+ }
1380
+ }
1381
+ },
1382
+ "node_modules/@radix-ui/react-use-size": {
1383
+ "version": "1.0.1",
1384
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.0.1.tgz",
1385
+ "integrity": "sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==",
1386
+ "dependencies": {
1387
+ "@babel/runtime": "^7.13.10",
1388
+ "@radix-ui/react-use-layout-effect": "1.0.1"
1389
+ },
1390
+ "peerDependencies": {
1391
+ "@types/react": "*",
1392
+ "react": "^16.8 || ^17.0 || ^18.0"
1393
+ },
1394
+ "peerDependenciesMeta": {
1395
+ "@types/react": {
1396
+ "optional": true
1397
+ }
1398
+ }
1399
+ },
1400
+ "node_modules/@radix-ui/react-visually-hidden": {
1401
+ "version": "1.0.3",
1402
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.3.tgz",
1403
+ "integrity": "sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==",
1404
+ "dependencies": {
1405
+ "@babel/runtime": "^7.13.10",
1406
+ "@radix-ui/react-primitive": "1.0.3"
1407
+ },
1408
+ "peerDependencies": {
1409
+ "@types/react": "*",
1410
+ "@types/react-dom": "*",
1411
+ "react": "^16.8 || ^17.0 || ^18.0",
1412
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
1413
+ },
1414
+ "peerDependenciesMeta": {
1415
+ "@types/react": {
1416
+ "optional": true
1417
+ },
1418
+ "@types/react-dom": {
1419
+ "optional": true
1420
+ }
1421
+ }
1422
+ },
1423
+ "node_modules/@radix-ui/rect": {
1424
+ "version": "1.0.1",
1425
+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.0.1.tgz",
1426
+ "integrity": "sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==",
1427
+ "dependencies": {
1428
+ "@babel/runtime": "^7.13.10"
1429
+ }
1430
+ },
1431
  "node_modules/@rushstack/eslint-patch": {
1432
  "version": "1.2.0",
1433
  "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz",
 
1786
  "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
1787
  "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
1788
  },
1789
+ "node_modules/asynckit": {
1790
+ "version": "0.4.0",
1791
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
1792
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
1793
+ },
1794
  "node_modules/autoprefixer": {
1795
  "version": "10.4.16",
1796
  "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz",
 
1847
  "node": ">=4"
1848
  }
1849
  },
1850
+ "node_modules/axios": {
1851
+ "version": "1.6.1",
1852
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz",
1853
+ "integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==",
1854
+ "dependencies": {
1855
+ "follow-redirects": "^1.15.0",
1856
+ "form-data": "^4.0.0",
1857
+ "proxy-from-env": "^1.1.0"
1858
+ }
1859
+ },
1860
  "node_modules/axobject-query": {
1861
  "version": "3.1.1",
1862
  "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",
 
2132
  "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
2133
  "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
2134
  },
2135
+ "node_modules/combined-stream": {
2136
+ "version": "1.0.8",
2137
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
2138
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
2139
+ "dependencies": {
2140
+ "delayed-stream": "~1.0.0"
2141
+ },
2142
+ "engines": {
2143
+ "node": ">= 0.8"
2144
+ }
2145
+ },
2146
  "node_modules/commander": {
2147
  "version": "4.1.1",
2148
  "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
 
2322
  "url": "https://github.com/sponsors/ljharb"
2323
  }
2324
  },
2325
+ "node_modules/delayed-stream": {
2326
+ "version": "1.0.0",
2327
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
2328
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
2329
+ "engines": {
2330
+ "node": ">=0.4.0"
2331
+ }
2332
+ },
2333
  "node_modules/didyoumean": {
2334
  "version": "1.2.2",
2335
  "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
 
3113
  "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
3114
  "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ=="
3115
  },
3116
+ "node_modules/follow-redirects": {
3117
+ "version": "1.15.3",
3118
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
3119
+ "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==",
3120
+ "funding": [
3121
+ {
3122
+ "type": "individual",
3123
+ "url": "https://github.com/sponsors/RubenVerborgh"
3124
+ }
3125
+ ],
3126
+ "engines": {
3127
+ "node": ">=4.0"
3128
+ },
3129
+ "peerDependenciesMeta": {
3130
+ "debug": {
3131
+ "optional": true
3132
+ }
3133
+ }
3134
+ },
3135
  "node_modules/for-each": {
3136
  "version": "0.3.3",
3137
  "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
 
3140
  "is-callable": "^1.1.3"
3141
  }
3142
  },
3143
+ "node_modules/form-data": {
3144
+ "version": "4.0.0",
3145
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
3146
+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
3147
+ "dependencies": {
3148
+ "asynckit": "^0.4.0",
3149
+ "combined-stream": "^1.0.8",
3150
+ "mime-types": "^2.1.12"
3151
+ },
3152
+ "engines": {
3153
+ "node": ">= 6"
3154
+ }
3155
+ },
3156
  "node_modules/fraction.js": {
3157
  "version": "4.3.7",
3158
  "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
 
4059
  "node": ">=8.6"
4060
  }
4061
  },
4062
+ "node_modules/mime-db": {
4063
+ "version": "1.52.0",
4064
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
4065
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
4066
+ "engines": {
4067
+ "node": ">= 0.6"
4068
+ }
4069
+ },
4070
+ "node_modules/mime-types": {
4071
+ "version": "2.1.35",
4072
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
4073
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
4074
+ "dependencies": {
4075
+ "mime-db": "1.52.0"
4076
+ },
4077
+ "engines": {
4078
+ "node": ">= 0.6"
4079
+ }
4080
+ },
4081
  "node_modules/mimic-fn": {
4082
  "version": "4.0.0",
4083
  "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
 
4734
  "react-is": "^16.13.1"
4735
  }
4736
  },
4737
+ "node_modules/proxy-from-env": {
4738
+ "version": "1.1.0",
4739
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
4740
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
4741
+ },
4742
  "node_modules/punycode": {
4743
  "version": "2.3.0",
4744
  "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
package.json CHANGED
@@ -33,9 +33,11 @@
33
  "@mui/material": "5.12.0",
34
  "@radix-ui/react-icons": "^1.3.0",
35
  "@radix-ui/react-slot": "^1.0.2",
 
36
  "@types/node": "20.1.4",
37
  "@types/react": "18.2.6",
38
  "@types/react-dom": "18.2.4",
 
39
  "class-variance-authority": "^0.7.0",
40
  "clsx": "^2.0.0",
41
  "eslint": "8.40.0",
 
33
  "@mui/material": "5.12.0",
34
  "@radix-ui/react-icons": "^1.3.0",
35
  "@radix-ui/react-slot": "^1.0.2",
36
+ "@radix-ui/react-tooltip": "^1.0.7",
37
  "@types/node": "20.1.4",
38
  "@types/react": "18.2.6",
39
  "@types/react-dom": "18.2.4",
40
+ "axios": "^1.6.1",
41
  "class-variance-authority": "^0.7.0",
42
  "clsx": "^2.0.0",
43
  "eslint": "8.40.0",
public/faran.jpg ADDED
public/mustafa.webp ADDED
public/tonic.webp ADDED
src/components/ui/Footer.tsx ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ export default function Footer(){
2
+ return (
3
+ <div>
4
+ Footer
5
+ </div>
6
+ )
7
+ }
src/components/ui/textarea.tsx ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ export interface TextareaProps
6
+ extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
7
+
8
+ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
9
+ ({ className, ...props }, ref) => {
10
+ return (
11
+ <textarea
12
+ className={cn(
13
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
14
+ className
15
+ )}
16
+ ref={ref}
17
+ {...props}
18
+ />
19
+ )
20
+ }
21
+ )
22
+ Textarea.displayName = "Textarea"
23
+
24
+ export { Textarea }
src/components/ui/tooltip.tsx ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip"
5
+
6
+ import { cn } from "@/lib/utils"
7
+
8
+ const TooltipProvider = TooltipPrimitive.Provider
9
+
10
+ const Tooltip = TooltipPrimitive.Root
11
+
12
+ const TooltipTrigger = TooltipPrimitive.Trigger
13
+
14
+ const TooltipContent = React.forwardRef<
15
+ React.ElementRef<typeof TooltipPrimitive.Content>,
16
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
17
+ >(({ className, sideOffset = 4, ...props }, ref) => (
18
+ <TooltipPrimitive.Content
19
+ ref={ref}
20
+ sideOffset={sideOffset}
21
+ className={cn(
22
+ "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
23
+ className
24
+ )}
25
+ {...props}
26
+ />
27
+ ))
28
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName
29
+
30
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
src/pages/Search.tsx CHANGED
@@ -1,7 +1,26 @@
 
 
 
 
1
  export default function Search(){
2
  return(
3
- <div>
4
- Search Page under development......
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </div>
6
  )
7
  }
 
1
+ import { Button } from "@/components/ui/button"
2
+ import { Input } from "@/components/ui/input"
3
+ import { Textarea } from "@/components/ui/textarea"
4
+ import Link from "next/link"
5
  export default function Search(){
6
  return(
7
+ <div className="w-screen pr-7">
8
+ <div className='flex justify-end m-10'>
9
+ <div className='bg-blue-500 text-sm rounded-xl text-white px-4 py-2'>
10
+ <Link href={'/'}>Upload Document</Link>
11
+ </div>
12
+ </div>
13
+ <div className="flex flex-col items-center justify-center gap-5">
14
+ <div className="text-5xl font-bold text-gray-400">Search <span className="text-blue-500">Document</span></div>
15
+ <div className="flex gap-4">
16
+ <Input type="search" className="w-80"/>
17
+ <Button className="border-2 border-blue-500 bg-white text-blue-500 font-bold hover:text-white hover:bg-blue-500">Search</Button>
18
+
19
+ </div>
20
+ <div>
21
+ <Textarea placeholder="Response." disabled rows={5} cols={50}/>
22
+ </div>
23
+ </div>
24
  </div>
25
  )
26
  }
src/pages/_document.tsx CHANGED
@@ -1,12 +1,25 @@
1
  import { Html, Head, Main, NextScript } from 'next/document'
2
-
 
 
 
3
  export default function Document() {
4
  return (
5
  <Html lang="en">
6
  <Head />
7
- <body className='w-screen h-screen border-[20px] border-blue-500 border-xl p-7'>
8
  <Main />
9
  <NextScript />
 
 
 
 
 
 
 
 
 
 
10
  </body>
11
  </Html>
12
  )
 
1
  import { Html, Head, Main, NextScript } from 'next/document'
2
+ import Footer from '@/components/ui/Footer';
3
+ import Image from 'next/image';
4
+ import Link from 'next/link';
5
+ import { Tooltip,TooltipContent,TooltipProvider,TooltipTrigger, } from '@/components/ui/tooltip';
6
  export default function Document() {
7
  return (
8
  <Html lang="en">
9
  <Head />
10
+ <body className='w-screen h-screen border-[20px] border-blue-500 border-xl p-0'>
11
  <Main />
12
  <NextScript />
13
+ <div className='mt-[75px] flex items-end justify-end pr-10'>
14
+ <div>
15
+ <div className='flex gap-2'>
16
+ <Link href={'https://huggingface.co/Tonic'}><Image src={'/tonic.webp'} alt='tonic' width={70} height={70} className='rounded-full border-8 border-blue-500'/></Link>
17
+ <Link href={'https://www.linkedin.com/in/faranbutt/'}><Image src={'/faran.jpg'} alt='tonic' width={70} height={70} className='rounded-full border-8 border-blue-500'/></Link>
18
+ <Link href={'https://www.github.com/Hassanmustafa786'}><Image src={'/mustafa.webp'} alt='tonic' width={70} height={70} className='rounded-full border-8 border-blue-500'/></Link>
19
+
20
+ </div>
21
+ </div>
22
+ </div>
23
  </body>
24
  </Html>
25
  )
src/pages/index.tsx CHANGED
@@ -3,12 +3,28 @@ import Link from "next/link";
3
  import { useState } from "react";
4
  import { Button } from "@/components/ui/button";
5
  import { Input } from "@/components/ui/input";
 
6
  export default function Home() {
7
  const [file,setFile] = useState(null);
8
  const [result,setResult] = useState('');
9
  const handleFileChange = (event:any) => {
 
10
  setFile(event.target.files[0]);
11
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  return (
13
  <>
14
  <Head>
@@ -24,16 +40,18 @@ export default function Home() {
24
  </div>
25
  </div>
26
  <div className='flex flex-col gap-10 justify-center items-center pt-10 h-full mx-auto'>
27
- <div className='flex'>
28
  <h1 className='text-gray-400 text-5xl md:text-7xl font-bold'>Here <span className='text-blue-600 dark:text-blue-500'> .Chat</span></h1>
 
29
  </div>
 
30
  <div className=''>
31
  <div className="flex gap-2">
32
  <div className="">
33
  <Input type='file' onChange={handleFileChange}/>
34
  <p className="mt-1 text-sm text-gray-500 dark:text-gray-300" id="file_input_help">TXT, DOCX, PPTX, JPG, PNG, HTML or PDF</p>
35
  </div>
36
- <Button className='border-2 border-blue-500 bg-white text-blue-500 font-bold hover:text-white hover:bg-blue-500'>Submit</Button>
37
  </div>
38
  </div>
39
  </div>
 
3
  import { useState } from "react";
4
  import { Button } from "@/components/ui/button";
5
  import { Input } from "@/components/ui/input";
6
+ import axios from "axios";
7
  export default function Home() {
8
  const [file,setFile] = useState(null);
9
  const [result,setResult] = useState('');
10
  const handleFileChange = (event:any) => {
11
+ console.log(event.target.files[0])
12
  setFile(event.target.files[0]);
13
  }
14
+ const SendFile = async() => {
15
+ try{
16
+ const response = await axios.post('/embed',{
17
+ "collection_name": "{collection_name}",
18
+ "file_url": file
19
+ },{
20
+ headers:{
21
+ 'Content-Type':"application/json"
22
+ }
23
+ })
24
+ }catch(error){
25
+ console.error('Error:', error);
26
+ }
27
+ }
28
  return (
29
  <>
30
  <Head>
 
40
  </div>
41
  </div>
42
  <div className='flex flex-col gap-10 justify-center items-center pt-10 h-full mx-auto'>
43
+ <div className='flex flex-col'>
44
  <h1 className='text-gray-400 text-5xl md:text-7xl font-bold'>Here <span className='text-blue-600 dark:text-blue-500'> .Chat</span></h1>
45
+ <h2 className="text-sm">Semantic Search your document in over 100 languages</h2>
46
  </div>
47
+
48
  <div className=''>
49
  <div className="flex gap-2">
50
  <div className="">
51
  <Input type='file' onChange={handleFileChange}/>
52
  <p className="mt-1 text-sm text-gray-500 dark:text-gray-300" id="file_input_help">TXT, DOCX, PPTX, JPG, PNG, HTML or PDF</p>
53
  </div>
54
+ <Button className='border-2 border-blue-500 bg-white text-blue-500 font-bold hover:text-white hover:bg-blue-500' disabled={!file} onClick={SendFile} >Submit</Button>
55
  </div>
56
  </div>
57
  </div>