Spaces:
Running
on
A100
Running
on
A100
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def single_turn_infer(audio_file, prompt_text):
|
|
57 |
def think_infer(audio_file, prompt_text):
|
58 |
try:
|
59 |
sound = llava.Sound(audio_file)
|
60 |
-
full_prompt = f"<sound>\n{prompt_text}
|
61 |
response = model_think.generate_content([sound, full_prompt], generation_config=generation_config_single)
|
62 |
return response
|
63 |
except Exception as e:
|
@@ -178,7 +178,7 @@ with gr.Blocks(css="""
|
|
178 |
with gr.Row():
|
179 |
with gr.Column():
|
180 |
audio_input_think = gr.Audio(type="filepath", label="Upload Audio")
|
181 |
-
prompt_input_think = gr.Textbox(label="Prompt", placeholder="
|
182 |
btn_think = gr.Button("Generate Answer")
|
183 |
|
184 |
gr.Examples(
|
|
|
57 |
def think_infer(audio_file, prompt_text):
|
58 |
try:
|
59 |
sound = llava.Sound(audio_file)
|
60 |
+
full_prompt = f"<sound>\n{prompt_text}"
|
61 |
response = model_think.generate_content([sound, full_prompt], generation_config=generation_config_single)
|
62 |
return response
|
63 |
except Exception as e:
|
|
|
178 |
with gr.Row():
|
179 |
with gr.Column():
|
180 |
audio_input_think = gr.Audio(type="filepath", label="Upload Audio")
|
181 |
+
prompt_input_think = gr.Textbox(label="Prompt", placeholder="To enable thinking, please add the text: '\nPlease think and reason about the input music before you respond.' to your prompt.", lines=8)
|
182 |
btn_think = gr.Button("Generate Answer")
|
183 |
|
184 |
gr.Examples(
|