Vihang28 commited on
Commit
89f0384
1 Parent(s): 3a2dc2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,7 +5,6 @@ from os import path
5
  import requests
6
  import openai
7
  from openai import OpenAI
8
- import numpy as np
9
 
10
  prompt = "Type and press Enter"
11
 
@@ -73,7 +72,7 @@ with block:
73
  gr.Markdown("""<h1><center>Audio Recognition - Ask and Learn about an Audio</center></h1> """)
74
  with gr.Row():
75
  with gr.Column(scale=0.5):
76
- aud_input = gr.Audio(type="numpy", label="Upload Audio", sources="upload")
77
  api_input = gr.Textbox(label="Enter Api-key")
78
  upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
79
  with gr.Column():
 
5
  import requests
6
  import openai
7
  from openai import OpenAI
 
8
 
9
  prompt = "Type and press Enter"
10
 
 
72
  gr.Markdown("""<h1><center>Audio Recognition - Ask and Learn about an Audio</center></h1> """)
73
  with gr.Row():
74
  with gr.Column(scale=0.5):
75
+ aud_input = gr.Audio(type="filepath", label="Upload Audio", sources="upload")
76
  api_input = gr.Textbox(label="Enter Api-key")
77
  upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
78
  with gr.Column():