Spaces:
Sleeping
Sleeping
matdmiller
commited on
Commit
·
45b2ac8
1
Parent(s):
72e0f08
moved launch into __main__ check
Browse files
app.ipynb
CHANGED
@@ -161,6 +161,18 @@
|
|
161 |
" "
|
162 |
]
|
163 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
{
|
165 |
"cell_type": "code",
|
166 |
"execution_count": null,
|
@@ -199,7 +211,9 @@
|
|
199 |
],
|
200 |
"source": [
|
201 |
"#| export\n",
|
202 |
-
"
|
|
|
|
|
203 |
]
|
204 |
},
|
205 |
{
|
|
|
161 |
" "
|
162 |
]
|
163 |
},
|
164 |
+
{
|
165 |
+
"cell_type": "code",
|
166 |
+
"execution_count": null,
|
167 |
+
"id": "4b534fe7-4337-423e-846a-1bdb7cccc4ea",
|
168 |
+
"metadata": {},
|
169 |
+
"outputs": [],
|
170 |
+
"source": [
|
171 |
+
"#| hide\n",
|
172 |
+
"#Notebook launch\n",
|
173 |
+
"app.launch()"
|
174 |
+
]
|
175 |
+
},
|
176 |
{
|
177 |
"cell_type": "code",
|
178 |
"execution_count": null,
|
|
|
211 |
],
|
212 |
"source": [
|
213 |
"#| export\n",
|
214 |
+
"#.py launch\n",
|
215 |
+
"if __name__ == \"__main__\":\n",
|
216 |
+
" app.launch()"
|
217 |
]
|
218 |
},
|
219 |
{
|
app.py
CHANGED
@@ -67,5 +67,7 @@ with gr.Blocks(title='OpenAI TTS', head='OpenAI TTS') as app:
|
|
67 |
clear_btn.click(fn=lambda: '', outputs=input_text)
|
68 |
|
69 |
|
70 |
-
# %% app.ipynb
|
71 |
-
|
|
|
|
|
|
67 |
clear_btn.click(fn=lambda: '', outputs=input_text)
|
68 |
|
69 |
|
70 |
+
# %% app.ipynb 10
|
71 |
+
#.py launch
|
72 |
+
if __name__ == "__main__":
|
73 |
+
app.launch()
|