Gradio - Can someone help me with my usecase?

Hi there,

I hope you’re well. I am new to Gradio and want to demo a proof of concept.

I have two functions.

function_1 accepts audio input (from gradio) and translates it into text. This text is stored/uploaded/cached to be used for the next function. I have this working as its own gradio web app demo.

function_2: takes a search query (text box input?), compares it to the output of function_1 and returns text. (i have this working as its own gradio demo, however it uses dummy text data read locally instead of the output from function_1)

Is it possible to set this series up, any guidance or templates that could help me please?

Ideally function_2 doesn’t run unless function_1 has ran first etc…