Diggz10 commited on
Commit
4c23f39
·
verified ·
1 Parent(s): 6608513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,9 +36,10 @@ iface = gr.Interface(
36
  outputs=gr.Label(num_top_classes=5, label="Emotion Probabilities"),
37
  title="AI Audio Emotion Detector",
38
  description="Upload an audio file or record your voice to detect emotions.",
 
 
39
  )
40
 
41
  # Launch the Gradio app with explicit server settings
42
  if __name__ == "__main__":
43
- # This is the final, most robust way to launch for public access
44
  iface.queue().launch(server_name="0.0.0.0", share=True)
 
36
  outputs=gr.Label(num_top_classes=5, label="Emotion Probabilities"),
37
  title="AI Audio Emotion Detector",
38
  description="Upload an audio file or record your voice to detect emotions.",
39
+ # THIS LINE IS CRITICAL - WE ARE CREATING AN EXPLICIT API ENDPOINT
40
+ api_name="predict"
41
  )
42
 
43
  # Launch the Gradio app with explicit server settings
44
  if __name__ == "__main__":
 
45
  iface.queue().launch(server_name="0.0.0.0", share=True)