Relative Content

Tag Archive for pythonfastapi

Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error

Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed function. Each frame is processed with a function namely process_image(img, scale=0.35). From that function, it updates a global dataframe df.
When this process is complete, the live feed is stopped by making state.live = False. The function then calls /upload_df, that should convert the df into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).

Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error

Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed function. Each frame is processed with a function namely process_image(img, scale=0.35). From that function, it updates a global dataframe df.
When this process is complete, the live feed is stopped by making state.live = False. The function then calls /upload_df, that should convert the df into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).

Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error

Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed function. Each frame is processed with a function namely process_image(img, scale=0.35). From that function, it updates a global dataframe df.
When this process is complete, the live feed is stopped by making state.live = False. The function then calls /upload_df, that should convert the df into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).

Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error

Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed function. Each frame is processed with a function namely process_image(img, scale=0.35). From that function, it updates a global dataframe df.
When this process is complete, the live feed is stopped by making state.live = False. The function then calls /upload_df, that should convert the df into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).