Upload app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ with gr.Blocks(css=custom_css, title="Serbian Sentiment Analyzer", theme=gr.them
|
|
| 124 |
Primer (JavaScript):
|
| 125 |
|
| 126 |
```javascript
|
| 127 |
-
const response = await fetch("https://huggingface.co/spaces/
|
| 128 |
method: "POST",
|
| 129 |
headers: { "Content-Type": "application/json" },
|
| 130 |
body: JSON.stringify({ data: ["Vaš tekst ovde"] })
|
|
|
|
| 124 |
Primer (JavaScript):
|
| 125 |
|
| 126 |
```javascript
|
| 127 |
+
const response = await fetch("https://huggingface.co/spaces/codepanov/serbian-sentiment-analyzer/api/predict", {
|
| 128 |
method: "POST",
|
| 129 |
headers: { "Content-Type": "application/json" },
|
| 130 |
body: JSON.stringify({ data: ["Vaš tekst ovde"] })
|