Spaces:
Runtime error
Runtime error
Commit
·
1a2f9e5
1
Parent(s):
ec0e7ff
fix url
Browse files
src/aineid/src/MainPage.jsx
CHANGED
@@ -34,7 +34,7 @@ function MainPage({state}) {
|
|
34 |
const handleSubmit = () => {
|
35 |
setIsLoading(true);
|
36 |
axios
|
37 |
-
.get(`https://grosenthal-
|
38 |
.then((response) => {
|
39 |
setIsLoading(false);
|
40 |
setTranslation(JSON.parse(response.data));
|
|
|
34 |
const handleSubmit = () => {
|
35 |
setIsLoading(true);
|
36 |
axios
|
37 |
+
.get(`https://grosenthal-aineid.hf.space/translate_all/?text=${inputText}`)
|
38 |
.then((response) => {
|
39 |
setIsLoading(false);
|
40 |
setTranslation(JSON.parse(response.data));
|
src/aineid/src/ProcessExplainer.jsx
CHANGED
@@ -48,7 +48,7 @@ function ProcessExplainer({ state }) {
|
|
48 |
|
49 |
try {
|
50 |
axios
|
51 |
-
.get(`https://grosenthal-
|
52 |
.then((response) => {
|
53 |
setIsProcessLoading(false);
|
54 |
setTokenized(JSON.parse(response.data));
|
|
|
48 |
|
49 |
try {
|
50 |
axios
|
51 |
+
.get(`https://grosenthal-aineid.hf.space/process/?text=${processInputText}`)
|
52 |
.then((response) => {
|
53 |
setIsProcessLoading(false);
|
54 |
setTokenized(JSON.parse(response.data));
|