PDF_to_Text / index.html
Marthee's picture
Update index.html
d5c1fe2 verified
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>My static Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<h1>Welcome to your static Space!</h1>
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
<p>
Also don't forget to check the
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
</p>
</div>
</body>
<script>
function sendData() {
try {
// Send POST request to the Flask endpoint
const response =fetch('https://huggingface.co/spaces/Marthee/PDF_to_Text/process', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
});
} catch (error) {
console.error('Error:', error);
document.getElementById('response').textContent = 'An error occurred.';
}
}
</script>
</html>