Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -238,7 +238,7 @@ def process_audio_input(audio_file, user_question: str, api_key_status: str) ->
|
|
238 |
combined_input = f"Transcribed audio: '{transcribed_text}'\n\nUser question: {user_question}"
|
239 |
return nexus_ai.generate_response(combined_input, "audio", transcribed_text)
|
240 |
else:
|
241 |
-
return nexus_ai.generate_response("Please help me with this audio
|
242 |
|
243 |
def process_code_input(code_input: str, language: str, action: str, api_key_status: str) -> str:
|
244 |
"""Process code input"""
|
@@ -534,8 +534,7 @@ def create_nexus_interface():
|
|
534 |
with gr.Column(scale=1, elem_classes=["input-card"]):
|
535 |
audio_file = gr.Audio(
|
536 |
label="Upload Audio",
|
537 |
-
type="filepath"
|
538 |
-
file_types=[".wav", ".mp3", ".ogg", ".flac", ".aac", ".m4a"]
|
539 |
)
|
540 |
audio_question = gr.Textbox(
|
541 |
label="Additional Question (optional)",
|
|
|
238 |
combined_input = f"Transcribed audio: '{transcribed_text}'\n\nUser question: {user_question}"
|
239 |
return nexus_ai.generate_response(combined_input, "audio", transcribed_text)
|
240 |
else:
|
241 |
+
return nexus_ai.generate_response("Please help me with this audio content", "audio", transcribed_text)
|
242 |
|
243 |
def process_code_input(code_input: str, language: str, action: str, api_key_status: str) -> str:
|
244 |
"""Process code input"""
|
|
|
534 |
with gr.Column(scale=1, elem_classes=["input-card"]):
|
535 |
audio_file = gr.Audio(
|
536 |
label="Upload Audio",
|
537 |
+
type="filepath"
|
|
|
538 |
)
|
539 |
audio_question = gr.Textbox(
|
540 |
label="Additional Question (optional)",
|