Spaces:
Sleeping
Sleeping
pranav8tripathi@gmail.com commited on
Commit ·
3ebfd43
1
Parent(s): 9adf9aa
base url changed
Browse files- README.md +1 -1
- package-lock.json +34 -0
- package.json +1 -0
- src/components/ChatInterface.tsx +1 -1
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: yellow
|
|
|
|
| 1 |
---
|
| 2 |
+
title: BizInsights-Frontend
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: yellow
|
package-lock.json
CHANGED
|
@@ -21,6 +21,7 @@
|
|
| 21 |
"@types/node": "^16.18.38",
|
| 22 |
"@types/react": "^18.2.6",
|
| 23 |
"@types/react-dom": "^18.2.4",
|
|
|
|
| 24 |
"jspdf": "^3.0.3",
|
| 25 |
"react": "^18.2.0",
|
| 26 |
"react-dom": "^18.2.0",
|
|
@@ -5435,6 +5436,33 @@
|
|
| 5435 |
"node": ">=4"
|
| 5436 |
}
|
| 5437 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5438 |
"node_modules/axobject-query": {
|
| 5439 |
"version": "4.1.0",
|
| 5440 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
|
|
@@ -14399,6 +14427,12 @@
|
|
| 14399 |
"node": ">= 0.10"
|
| 14400 |
}
|
| 14401 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14402 |
"node_modules/psl": {
|
| 14403 |
"version": "1.15.0",
|
| 14404 |
"resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz",
|
|
|
|
| 21 |
"@types/node": "^16.18.38",
|
| 22 |
"@types/react": "^18.2.6",
|
| 23 |
"@types/react-dom": "^18.2.4",
|
| 24 |
+
"axios": "^1.12.2",
|
| 25 |
"jspdf": "^3.0.3",
|
| 26 |
"react": "^18.2.0",
|
| 27 |
"react-dom": "^18.2.0",
|
|
|
|
| 5436 |
"node": ">=4"
|
| 5437 |
}
|
| 5438 |
},
|
| 5439 |
+
"node_modules/axios": {
|
| 5440 |
+
"version": "1.12.2",
|
| 5441 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
|
| 5442 |
+
"integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
|
| 5443 |
+
"license": "MIT",
|
| 5444 |
+
"dependencies": {
|
| 5445 |
+
"follow-redirects": "^1.15.6",
|
| 5446 |
+
"form-data": "^4.0.4",
|
| 5447 |
+
"proxy-from-env": "^1.1.0"
|
| 5448 |
+
}
|
| 5449 |
+
},
|
| 5450 |
+
"node_modules/axios/node_modules/form-data": {
|
| 5451 |
+
"version": "4.0.4",
|
| 5452 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
| 5453 |
+
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
| 5454 |
+
"license": "MIT",
|
| 5455 |
+
"dependencies": {
|
| 5456 |
+
"asynckit": "^0.4.0",
|
| 5457 |
+
"combined-stream": "^1.0.8",
|
| 5458 |
+
"es-set-tostringtag": "^2.1.0",
|
| 5459 |
+
"hasown": "^2.0.2",
|
| 5460 |
+
"mime-types": "^2.1.12"
|
| 5461 |
+
},
|
| 5462 |
+
"engines": {
|
| 5463 |
+
"node": ">= 6"
|
| 5464 |
+
}
|
| 5465 |
+
},
|
| 5466 |
"node_modules/axobject-query": {
|
| 5467 |
"version": "4.1.0",
|
| 5468 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
|
|
|
|
| 14427 |
"node": ">= 0.10"
|
| 14428 |
}
|
| 14429 |
},
|
| 14430 |
+
"node_modules/proxy-from-env": {
|
| 14431 |
+
"version": "1.1.0",
|
| 14432 |
+
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 14433 |
+
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 14434 |
+
"license": "MIT"
|
| 14435 |
+
},
|
| 14436 |
"node_modules/psl": {
|
| 14437 |
"version": "1.15.0",
|
| 14438 |
"resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz",
|
package.json
CHANGED
|
@@ -16,6 +16,7 @@
|
|
| 16 |
"@types/node": "^16.18.38",
|
| 17 |
"@types/react": "^18.2.6",
|
| 18 |
"@types/react-dom": "^18.2.4",
|
|
|
|
| 19 |
"jspdf": "^3.0.3",
|
| 20 |
"react": "^18.2.0",
|
| 21 |
"react-dom": "^18.2.0",
|
|
|
|
| 16 |
"@types/node": "^16.18.38",
|
| 17 |
"@types/react": "^18.2.6",
|
| 18 |
"@types/react-dom": "^18.2.4",
|
| 19 |
+
"axios": "^1.12.2",
|
| 20 |
"jspdf": "^3.0.3",
|
| 21 |
"react": "^18.2.0",
|
| 22 |
"react-dom": "^18.2.0",
|
src/components/ChatInterface.tsx
CHANGED
|
@@ -47,7 +47,7 @@ const ChatInterface: React.FC = () => {
|
|
| 47 |
setIsLoading(true);
|
| 48 |
try {
|
| 49 |
console.log('[DEBUG] Sending message to Rasa REST webhook...', outgoing);
|
| 50 |
-
const res = await fetch(`
|
| 51 |
method: 'POST',
|
| 52 |
headers: { 'Content-Type': 'application/json' },
|
| 53 |
body: JSON.stringify({ sender: 'web-user', message: outgoing }),
|
|
|
|
| 47 |
setIsLoading(true);
|
| 48 |
try {
|
| 49 |
console.log('[DEBUG] Sending message to Rasa REST webhook...', outgoing);
|
| 50 |
+
const res = await fetch(`https://devyugensys-bizinsight-rasa.hf.space/webhooks/rest/webhook`, {
|
| 51 |
method: 'POST',
|
| 52 |
headers: { 'Content-Type': 'application/json' },
|
| 53 |
body: JSON.stringify({ sender: 'web-user', message: outgoing }),
|