Spaces:
Sleeping
Sleeping
ahmedJaafari
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from gradio_client import Client, handle_file
|
3 |
import os
|
4 |
|
5 |
-
client = Client(f"ahmedJaafari/{os.getenv(
|
6 |
|
7 |
def classify_audio(audio):
|
8 |
# Simulating the classification result based on audio
|
|
|
2 |
from gradio_client import Client, handle_file
|
3 |
import os
|
4 |
|
5 |
+
client = Client(f"ahmedJaafari/{os.getenv('API_ENDPOINT')}", hf_token=os.getenv("API_KEY"))
|
6 |
|
7 |
def classify_audio(audio):
|
8 |
# Simulating the classification result based on audio
|