Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ gr.Interface(
|
|
81 |
title="CAMAI - Centralized Actionable Multimodal Agri Assistant on Edge Intelligence for Farmers",
|
82 |
fn=chat_interface,
|
83 |
inputs=[
|
84 |
-
gr.inputs.Audio
|
85 |
source="microphone", type="filepath", label="Record your voice"
|
86 |
),
|
87 |
gr.inputs.File(label="Upload an audio file (optional)"),
|
@@ -91,4 +91,3 @@ gr.Interface(
|
|
91 |
],
|
92 |
theme="darkly"
|
93 |
).launch()
|
94 |
-
|
|
|
81 |
title="CAMAI - Centralized Actionable Multimodal Agri Assistant on Edge Intelligence for Farmers",
|
82 |
fn=chat_interface,
|
83 |
inputs=[
|
84 |
+
inputs.Audio( # Use 'inputs.Audio' instead of 'gr.inputs.Audio'
|
85 |
source="microphone", type="filepath", label="Record your voice"
|
86 |
),
|
87 |
gr.inputs.File(label="Upload an audio file (optional)"),
|
|
|
91 |
],
|
92 |
theme="darkly"
|
93 |
).launch()
|
|