SivaResearch commited on
Commit
afcd5ad
·
verified ·
1 Parent(s): 556170f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -8
app.py CHANGED
@@ -77,11 +77,18 @@ def chat_interface(audio):
77
  return outputs
78
 
79
 
80
- demo = gr.Interface(
81
- title = 'CAMAI - Centralized Actionable Multimodal Agri Assistant on Edge Intelligence for Farmers ',
82
- fn=chat_interface,
83
- gr.inputs.Audio(source="microphone", type="filepath"),
84
- outputs=["textbox"],
85
- live=True
86
- )
87
- demo.launch()
 
 
 
 
 
 
 
 
77
  return outputs
78
 
79
 
80
+ gr.Interface(
81
+ title="Effortless Transcription: Turn Speech to Text Instantly",
82
+ fn=ai_assistant,
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)"),
88
+ ],
89
+ outputs=[
90
+ "textbox"
91
+ ],
92
+ theme="darkly"
93
+ ).launch()
94
+