Commit dc58ee3d authored by tandin2000's avatar tandin2000

tan changes

parent c9d83712
...@@ -8,7 +8,7 @@ class Home extends Component { ...@@ -8,7 +8,7 @@ class Home extends Component {
<div className="home home_padding"> <div className="home home_padding">
<div className="home_content"> <div className="home_content">
<h1 className="gradient_text">EDUCATIONAL VIDEO SUMMARIZER AND DIGITAL HUMAN ASSISTANT</h1> <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> </div>
</div> </div>
......
...@@ -34,20 +34,25 @@ function VideoSum() { ...@@ -34,20 +34,25 @@ function VideoSum() {
setLoadingStatus(true) setLoadingStatus(true)
const formData = new FormData(); const formData = new FormData();
formData.append('video', video); formData.append('video', video);
fetch("http://127.0.0.1:1100/topic", {
method: 'POST', console.log(formData)
body: formData, // fetch("http://127.0.0.1:1100/topic", {
}) // method: 'POST',
.then(response => response.json()) // body: formData,
.then(response => { // })
setIndexingData(response); // .then(response => response.json())
setButtonStatus(true); // .then(response => {
setLoadingStatus(false) // setIndexingData(response);
}) // setButtonStatus(true);
.catch(err => { // setLoadingStatus(false)
console.log(err); // })
// .catch(err => {
// console.log(err);
// setLoadingStatus(false);
// });
//temporary
setLoadingStatus(false); setLoadingStatus(false);
});
} }
// console.log(indexingData) // 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