Spaces:
Build error
Build error
Commit
·
4d1b490
1
Parent(s):
567f582
Fix: Use relative API path
Browse files
web_client/src/components/InteractionLab.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export const InteractionLab = () => {
|
|
| 17 |
if (!prompt.trim()) return;
|
| 18 |
setLoading(true);
|
| 19 |
try {
|
| 20 |
-
const res = await fetch('
|
| 21 |
method: 'POST',
|
| 22 |
headers: {
|
| 23 |
'Content-Type': 'application/json'
|
|
|
|
| 17 |
if (!prompt.trim()) return;
|
| 18 |
setLoading(true);
|
| 19 |
try {
|
| 20 |
+
const res = await fetch('/api/analyze', {
|
| 21 |
method: 'POST',
|
| 22 |
headers: {
|
| 23 |
'Content-Type': 'application/json'
|