Spaces:
Running
Running
Commit
•
984bd1b
1
Parent(s):
6264bca
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,10 @@ from IPython.display import Audio, display
|
|
7 |
from freeGPT import Client
|
8 |
from gradio_client import Client
|
9 |
|
10 |
-
api_token = os.environ.get("API_TOKEN")
|
11 |
API_URL = "https://api-inference.huggingface.co/models/facebook/musicgen-small"
|
12 |
API_URL_IMG = "https://api-inference.huggingface.co/models/Salesforce/blip-image-captioning-large"
|
13 |
-
headers = {"Authorization": f"Bearer {api_token}"}
|
14 |
|
15 |
def get_speech(text, voice):
|
16 |
client = Client("https://collabora-whisperspeech.hf.space/")
|
|
|
7 |
from freeGPT import Client
|
8 |
from gradio_client import Client
|
9 |
|
10 |
+
'''api_token = os.environ.get("API_TOKEN")
|
11 |
API_URL = "https://api-inference.huggingface.co/models/facebook/musicgen-small"
|
12 |
API_URL_IMG = "https://api-inference.huggingface.co/models/Salesforce/blip-image-captioning-large"
|
13 |
+
headers = {"Authorization": f"Bearer {api_token}"}'''
|
14 |
|
15 |
def get_speech(text, voice):
|
16 |
client = Client("https://collabora-whisperspeech.hf.space/")
|