Relative Content

Tag Archive for fastapigradio

Unable to Retrieve File Path from gr.Audio Component in Gradio with FastAPI Integration

In the following code, the user is first authenticated via their Google account, and then their registration is verified by checking a database. Once authenticated and validated, a sentence is displayed for the user to record. After the user records the audio and stops it, the file is correctly saved in the /tmp/gradio/ directory. However, when the function from gr.Interface is triggered, it fails to retrieve the file path for the recorded audio.