Spaces:
Runtime error
Runtime error
Commit
·
fc95a9c
1
Parent(s):
05182fb
fix auth
Browse files
app.ipynb
CHANGED
@@ -254,7 +254,7 @@
|
|
254 |
"#| export\n",
|
255 |
"def create_speech2(input_text, model='tts-1', voice='alloy', profile: gr.OAuthProfile|None=None, progress=gr.Progress(), **kwargs):\n",
|
256 |
" print('cs2-profile:',profile)\n",
|
257 |
-
" assert authorized() is not None,'Unauthorized M'\n",
|
258 |
" start = datetime.now()\n",
|
259 |
" # Split the input text into chunks\n",
|
260 |
" chunks = split_text(input_text)\n",
|
@@ -490,7 +490,7 @@
|
|
490 |
},
|
491 |
{
|
492 |
"cell_type": "code",
|
493 |
-
"execution_count":
|
494 |
"id": "0420310d-930b-4904-8bd4-3458ad8bdbd3",
|
495 |
"metadata": {},
|
496 |
"outputs": [],
|
|
|
254 |
"#| export\n",
|
255 |
"def create_speech2(input_text, model='tts-1', voice='alloy', profile: gr.OAuthProfile|None=None, progress=gr.Progress(), **kwargs):\n",
|
256 |
" print('cs2-profile:',profile)\n",
|
257 |
+
" assert authorized(profile) is not None,'Unauthorized M'\n",
|
258 |
" start = datetime.now()\n",
|
259 |
" # Split the input text into chunks\n",
|
260 |
" chunks = split_text(input_text)\n",
|
|
|
490 |
},
|
491 |
{
|
492 |
"cell_type": "code",
|
493 |
+
"execution_count": 37,
|
494 |
"id": "0420310d-930b-4904-8bd4-3458ad8bdbd3",
|
495 |
"metadata": {},
|
496 |
"outputs": [],
|
app.py
CHANGED
@@ -140,7 +140,7 @@ def create_speech_openai(chunk_idx, input, model='tts-1', voice='alloy', speed=1
|
|
140 |
# %% app.ipynb 11
|
141 |
def create_speech2(input_text, model='tts-1', voice='alloy', profile: gr.OAuthProfile|None=None, progress=gr.Progress(), **kwargs):
|
142 |
print('cs2-profile:',profile)
|
143 |
-
assert authorized() is not None,'Unauthorized M'
|
144 |
start = datetime.now()
|
145 |
# Split the input text into chunks
|
146 |
chunks = split_text(input_text)
|
|
|
140 |
# %% app.ipynb 11
|
141 |
def create_speech2(input_text, model='tts-1', voice='alloy', profile: gr.OAuthProfile|None=None, progress=gr.Progress(), **kwargs):
|
142 |
print('cs2-profile:',profile)
|
143 |
+
assert authorized(profile) is not None,'Unauthorized M'
|
144 |
start = datetime.now()
|
145 |
# Split the input text into chunks
|
146 |
chunks = split_text(input_text)
|