Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def process_inputs(audio_filepath, image_filepath):
|
|
133 |
output_filepath = "output_audio.mp3"
|
134 |
voice_of_doctor = text_to_speech_with_elevenlabs(input_text=doctor_response, output_filepath=output_filepath)
|
135 |
|
136 |
-
return speech_to_text_output, doctor_response, output_filepath
|
137 |
|
138 |
|
139 |
# Create the interface
|
@@ -144,6 +144,8 @@ iface = gr.Interface(
|
|
144 |
gr.Image(type="filepath")
|
145 |
],
|
146 |
outputs=[
|
|
|
|
|
147 |
gr.Textbox(label="Speech to Text"),
|
148 |
gr.Textbox(label="Doctor's Response"),
|
149 |
gr.Audio(label="Doctor's Voice")
|
|
|
133 |
output_filepath = "output_audio.mp3"
|
134 |
voice_of_doctor = text_to_speech_with_elevenlabs(input_text=doctor_response, output_filepath=output_filepath)
|
135 |
|
136 |
+
return enhanced_prompt, encoded_image, speech_to_text_output, doctor_response, output_filepath
|
137 |
|
138 |
|
139 |
# Create the interface
|
|
|
144 |
gr.Image(type="filepath")
|
145 |
],
|
146 |
outputs=[
|
147 |
+
gr.Textbox(label="Prompt"),
|
148 |
+
gr.Textbox(label="Encoded Image"),
|
149 |
gr.Textbox(label="Speech to Text"),
|
150 |
gr.Textbox(label="Doctor's Response"),
|
151 |
gr.Audio(label="Doctor's Voice")
|