Spaces:
Sleeping
Sleeping
Update templates/inference.html
Browse files- templates/inference.html +1 -1
templates/inference.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
| 102 |
document.getElementById('submitBtn').disabled = true;
|
| 103 |
|
| 104 |
try {
|
| 105 |
-
const response = await fetch('/api/summarize', {
|
| 106 |
method: 'POST',
|
| 107 |
headers: { 'Content-Type': 'application/json' },
|
| 108 |
body: JSON.stringify({ text: text, model_name: model, hf_token: hfToken })
|
|
|
|
| 102 |
document.getElementById('submitBtn').disabled = true;
|
| 103 |
|
| 104 |
try {
|
| 105 |
+
const response = await fetch('/summarize/api/summarize', {
|
| 106 |
method: 'POST',
|
| 107 |
headers: { 'Content-Type': 'application/json' },
|
| 108 |
body: JSON.stringify({ text: text, model_name: model, hf_token: hfToken })
|