Commit dc58ee3d authored by tandin2000's avatar tandin2000

tan changes

parent c9d83712
......@@ -8,7 +8,7 @@ class Home extends Component {
<div className="home home_padding">
<div className="home_content">
<h1 className="gradient_text">EDUCATIONAL VIDEO SUMMARIZER AND DIGITAL HUMAN ASSISTANT</h1>
<p>Yet bed any for travelling assistance indulgence unpleasing. Not thoughts all exercise blessing. Indulgence way everything joy alteration boisterous the attachment. Party we years to order allow asked of.</p>
<p>Education can't be there for limited people. It should be universally available. Starting from school to the area of meta-verus...</p>
</div>
</div>
</div>
......
......@@ -34,20 +34,25 @@ function VideoSum() {
setLoadingStatus(true)
const formData = new FormData();
formData.append('video', video);
fetch("http://127.0.0.1:1100/topic", {
method: 'POST',
body: formData,
})
.then(response => response.json())
.then(response => {
setIndexingData(response);
setButtonStatus(true);
setLoadingStatus(false)
})
.catch(err => {
console.log(err);
setLoadingStatus(false);
});
console.log(formData)
// fetch("http://127.0.0.1:1100/topic", {
// method: 'POST',
// body: formData,
// })
// .then(response => response.json())
// .then(response => {
// setIndexingData(response);
// setButtonStatus(true);
// setLoadingStatus(false)
// })
// .catch(err => {
// console.log(err);
// setLoadingStatus(false);
// });
//temporary
setLoadingStatus(false);
}
// console.log(indexingData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment