AUXteam commited on
Commit
929e898
·
verified ·
1 Parent(s): d26e0e5

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +0 -9
  2. index.html +1 -0
  3. package-lock.json +36 -20
  4. services/gradioService.ts +0 -2
README.md CHANGED
@@ -1,12 +1,3 @@
1
- ---
2
- title: UserSyncInterface
3
- emoji: 🔄
4
- colorFrom: blue
5
- colorTo: blue
6
- sdk: docker
7
- app_port: 7860
8
- ---
9
-
10
  <div align="center">
11
  <img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
12
  </div>
 
 
 
 
 
 
 
 
 
 
1
  <div align="center">
2
  <img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
3
  </div>
index.html CHANGED
@@ -67,5 +67,6 @@
67
  </head>
68
  <body>
69
  <div id="root"></div>
 
70
  </body>
71
  </html>
 
67
  </head>
68
  <body>
69
  <div id="root"></div>
70
+ <script type="module" src="/index.tsx"></script>
71
  </body>
72
  </html>
package-lock.json CHANGED
@@ -1801,6 +1801,22 @@
1801
  "url": "https://opencollective.com/express"
1802
  }
1803
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1804
  "node_modules/brorand": {
1805
  "version": "1.1.0",
1806
  "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz",
@@ -3804,19 +3820,15 @@
3804
  "license": "MIT"
3805
  },
3806
  "node_modules/iconv-lite": {
3807
- "version": "0.7.2",
3808
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
3809
- "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
3810
  "license": "MIT",
3811
  "dependencies": {
3812
- "safer-buffer": ">= 2.1.2 < 3.0.0"
3813
  },
3814
  "engines": {
3815
  "node": ">=0.10.0"
3816
- },
3817
- "funding": {
3818
- "type": "opencollective",
3819
- "url": "https://opencollective.com/express"
3820
  }
3821
  },
3822
  "node_modules/ieee754": {
@@ -4436,18 +4448,6 @@
4436
  "ms": "^2.1.1"
4437
  }
4438
  },
4439
- "node_modules/needle/node_modules/iconv-lite": {
4440
- "version": "0.4.24",
4441
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
4442
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
4443
- "license": "MIT",
4444
- "dependencies": {
4445
- "safer-buffer": ">= 2.1.2 < 3"
4446
- },
4447
- "engines": {
4448
- "node": ">=0.10.0"
4449
- }
4450
- },
4451
  "node_modules/negotiator": {
4452
  "version": "1.0.0",
4453
  "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
@@ -5088,6 +5088,22 @@
5088
  "node": ">= 0.10"
5089
  }
5090
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5091
  "node_modules/react": {
5092
  "version": "19.2.4",
5093
  "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
 
1801
  "url": "https://opencollective.com/express"
1802
  }
1803
  },
1804
+ "node_modules/body-parser/node_modules/iconv-lite": {
1805
+ "version": "0.7.2",
1806
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
1807
+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
1808
+ "license": "MIT",
1809
+ "dependencies": {
1810
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
1811
+ },
1812
+ "engines": {
1813
+ "node": ">=0.10.0"
1814
+ },
1815
+ "funding": {
1816
+ "type": "opencollective",
1817
+ "url": "https://opencollective.com/express"
1818
+ }
1819
+ },
1820
  "node_modules/brorand": {
1821
  "version": "1.1.0",
1822
  "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz",
 
3820
  "license": "MIT"
3821
  },
3822
  "node_modules/iconv-lite": {
3823
+ "version": "0.4.24",
3824
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
3825
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
3826
  "license": "MIT",
3827
  "dependencies": {
3828
+ "safer-buffer": ">= 2.1.2 < 3"
3829
  },
3830
  "engines": {
3831
  "node": ">=0.10.0"
 
 
 
 
3832
  }
3833
  },
3834
  "node_modules/ieee754": {
 
4448
  "ms": "^2.1.1"
4449
  }
4450
  },
 
 
 
 
 
 
 
 
 
 
 
 
4451
  "node_modules/negotiator": {
4452
  "version": "1.0.0",
4453
  "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
 
5088
  "node": ">= 0.10"
5089
  }
5090
  },
5091
+ "node_modules/raw-body/node_modules/iconv-lite": {
5092
+ "version": "0.7.2",
5093
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
5094
+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
5095
+ "license": "MIT",
5096
+ "dependencies": {
5097
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
5098
+ },
5099
+ "engines": {
5100
+ "node": ">=0.10.0"
5101
+ },
5102
+ "funding": {
5103
+ "type": "opencollective",
5104
+ "url": "https://opencollective.com/express"
5105
+ }
5106
+ },
5107
  "node_modules/react": {
5108
  "version": "19.2.4",
5109
  "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
services/gradioService.ts CHANGED
@@ -36,13 +36,11 @@ export class GradioService {
36
 
37
  static async helpMeCraft(content: string) {
38
  try {
39
- // Assuming an endpoint for help me craft or similar
40
  const client = await this.getClient();
41
  const result = await client.predict("/help_me_craft", [content]);
42
  return result.data;
43
  } catch (error) {
44
  console.error("Error helping to craft content:", error);
45
- // Fallback or generic error handling
46
  return "Unable to craft content at this time.";
47
  }
48
  }
 
36
 
37
  static async helpMeCraft(content: string) {
38
  try {
 
39
  const client = await this.getClient();
40
  const result = await client.predict("/help_me_craft", [content]);
41
  return result.data;
42
  } catch (error) {
43
  console.error("Error helping to craft content:", error);
 
44
  return "Unable to craft content at this time.";
45
  }
46
  }