File size: 658 Bytes
0588585
237d4e9
0588585
 
 
 
237d4e9
0588585
 
 
 
99aef6b
0588585
 
 
 
 
237d4e9
0588585
 
e045ba6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

def process_audio_and_strings(audio_file, string1, string2):
    # This function would process the audio file and strings as needed.
    # For demonstration, it just returns a confirmation message.
    return f"Received audio file: {audio_file.name}, and strings: '{string1}', '{string2}'"

# Define the Gradio interface
iface = gr.Interface(
    fn=process_audio_and_strings,
    inputs=[
        gr.Audio(type="filepath"),
        gr.Textbox(label="String 1"),
        gr.Textbox(label="String 2")
    ],
    outputs="text"
)

# Launch the app
if __name__ == "__main__":
    iface.queue(concurrency_count=1, max_size=50).launch()