Spaces:
Runtime error
Runtime error
adding api
Browse files
app.py
CHANGED
@@ -178,7 +178,6 @@ article = """
|
|
178 |
</p>
|
179 |
""".strip()
|
180 |
|
181 |
-
|
182 |
interface_mic = gr.Interface(
|
183 |
predict,
|
184 |
inputs=[
|
@@ -198,7 +197,9 @@ interface_mic = gr.Interface(
|
|
198 |
title="Voice Cloning",
|
199 |
description=description,
|
200 |
article=article,
|
|
|
201 |
)
|
|
|
202 |
interface_file = gr.Interface(
|
203 |
predict,
|
204 |
inputs=[
|
@@ -218,12 +219,13 @@ interface_file = gr.Interface(
|
|
218 |
title="Voice Cloning",
|
219 |
description=description,
|
220 |
article=article,
|
|
|
221 |
)
|
|
|
222 |
interface = gr.TabbedInterface(
|
223 |
[interface_mic, interface_file],
|
224 |
["Clone From Mic", "Clone From File"],
|
225 |
)
|
226 |
|
227 |
-
|
228 |
if __name__ == "__main__":
|
229 |
-
interface.launch()
|
|
|
178 |
</p>
|
179 |
""".strip()
|
180 |
|
|
|
181 |
interface_mic = gr.Interface(
|
182 |
predict,
|
183 |
inputs=[
|
|
|
197 |
title="Voice Cloning",
|
198 |
description=description,
|
199 |
article=article,
|
200 |
+
enable_api=True, # Add this line
|
201 |
)
|
202 |
+
|
203 |
interface_file = gr.Interface(
|
204 |
predict,
|
205 |
inputs=[
|
|
|
219 |
title="Voice Cloning",
|
220 |
description=description,
|
221 |
article=article,
|
222 |
+
enable_api=True, # Add this line
|
223 |
)
|
224 |
+
|
225 |
interface = gr.TabbedInterface(
|
226 |
[interface_mic, interface_file],
|
227 |
["Clone From Mic", "Clone From File"],
|
228 |
)
|
229 |
|
|
|
230 |
if __name__ == "__main__":
|
231 |
+
interface.launch()
|