Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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():
|