Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant0708 committed Dec 3, 2024
1 parent a6abe78 commit 68f5d83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/verification/verification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Verification = () => {
}, [])

const checkDevices = () => {
fetch('iipsexamstudentportal-production.up.railway.app/initialize_devices')
fetch('http://127.0.0.1:5000/initialize_devices')
.then((response) => response.json())
.then((data) => {
setDeviceStatus({
Expand Down Expand Up @@ -61,7 +61,7 @@ const Verification = () => {
setIsRecording(true);
setTestStatus('Please wait...');

fetch('iipsexamstudentportal-production.up.railway.app/start_test', {
fetch('http://127.0.0.1:5000/start_test', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
Expand All @@ -72,7 +72,7 @@ const Verification = () => {
})
.then(() => {
const intervalId = setInterval(() => {
fetch('iipsexamstudentportal-production.up.railway.app/check_test_status')
fetch('http://127.0.0.1:5000/check_test_status')
.then((response) => response.json())
.then((statusData) => {
if (statusData.recording_in_progress) {
Expand All @@ -98,7 +98,7 @@ const Verification = () => {
setIsRecording(false);
setTestStatus('Recording stopped due to logout.');
// Send a request to stop the recording on the server
fetch('iipsexamstudentportal-production.up.railway.app/start_test', {
fetch('http://127.0.0.1:5000/start_test', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
Expand Down Expand Up @@ -128,7 +128,7 @@ const Verification = () => {
<img
id="verification_webcam"
className="verification_webcam"
src="iipsexamstudentportal-production.up.railway.app/video_feed"
src="http://127.0.0.1:5000/video_feed"
alt="Webcam feed"
/>

Expand Down

0 comments on commit 68f5d83

Please sign in to comment.