ritesh19180 commited on
Commit
1f16a1f
·
verified ·
1 Parent(s): d3ec6da

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -2,7 +2,3 @@
2
  *.pt filter=lfs diff=lfs merge=lfs -text
3
  *.bin filter=lfs diff=lfs merge=lfs -text
4
  *.pkl filter=lfs diff=lfs merge=lfs -text
5
- MobileApp/assets/adaptive-icon.png filter=lfs diff=lfs merge=lfs -text
6
- MobileApp/assets/icon.png filter=lfs diff=lfs merge=lfs -text
7
- MobileApp/assets/logo_v1.png filter=lfs diff=lfs merge=lfs -text
8
- MobileApp/assets/splash-icon.png filter=lfs diff=lfs merge=lfs -text
 
2
  *.pt filter=lfs diff=lfs merge=lfs -text
3
  *.bin filter=lfs diff=lfs merge=lfs -text
4
  *.pkl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
Frontend/src/user/pages/AIProcessing.jsx CHANGED
@@ -123,6 +123,9 @@ const AIProcessing = () => {
123
  ticket_title: ticket_title || null,
124
  };
125
 
 
 
 
126
  const response = await fetch(
127
  `${API_CONFIG.BACKEND_URL}/ai/analyze_stream`,
128
  {
@@ -130,9 +133,11 @@ const AIProcessing = () => {
130
  headers: {
131
  'Content-Type': 'application/json'
132
  },
133
- body: JSON.stringify(payload)
 
134
  }
135
  );
 
136
 
137
  if (!response.ok) {
138
  throw new Error("Backend streaming failed");
 
123
  ticket_title: ticket_title || null,
124
  };
125
 
126
+ const controller = new AbortController();
127
+ const timeoutId = setTimeout(() => controller.abort(), 6000);
128
+
129
  const response = await fetch(
130
  `${API_CONFIG.BACKEND_URL}/ai/analyze_stream`,
131
  {
 
133
  headers: {
134
  'Content-Type': 'application/json'
135
  },
136
+ body: JSON.stringify(payload),
137
+ signal: controller.signal
138
  }
139
  );
140
+ clearTimeout(timeoutId);
141
 
142
  if (!response.ok) {
143
  throw new Error("Backend streaming failed");