Spaces:
Sleeping
Sleeping
Valentin Peron
commited on
Commit
·
e7ef90f
1
Parent(s):
77496cc
feat: https
Browse files
front/src/Homescene.tsx
CHANGED
@@ -17,7 +17,7 @@ export default function HomeScene() {
|
|
17 |
formData.append("file", file);
|
18 |
|
19 |
try {
|
20 |
-
const response = await fetch("
|
21 |
method: "POST",
|
22 |
body: formData,
|
23 |
});
|
|
|
17 |
formData.append("file", file);
|
18 |
|
19 |
try {
|
20 |
+
const response = await fetch("https://0.0.0.0:7860/uploadpdf", {
|
21 |
method: "POST",
|
22 |
body: formData,
|
23 |
});
|
front/src/VerificationScene.tsx
CHANGED
@@ -44,7 +44,7 @@ export default function VerificationScene() {
|
|
44 |
setLoading: (n: fetchResult) => void,
|
45 |
) => {
|
46 |
try {
|
47 |
-
const response = await fetch("
|
48 |
method: "POST",
|
49 |
headers: {
|
50 |
"Content-Type": "application/json",
|
|
|
44 |
setLoading: (n: fetchResult) => void,
|
45 |
) => {
|
46 |
try {
|
47 |
+
const response = await fetch("https://0.0.0.0:7860/uploadids", {
|
48 |
method: "POST",
|
49 |
headers: {
|
50 |
"Content-Type": "application/json",
|