Spaces:
Runtime error
Runtime error
bug fix
Browse files- app.py +6 -4
- requirements.txt +5 -1
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
| 3 |
-
|
| 4 |
-
|
| 5 |
#from share_btn imposrt community_icon_html, loading_icon_html, share_js
|
| 6 |
-
|
| 7 |
-
|
| 8 |
DEBUG_MODE = False
|
| 9 |
|
| 10 |
|
|
@@ -24,6 +24,8 @@ def echo(text, request: gr.Request):
|
|
| 24 |
|
| 25 |
# Convert the output_text dictionary to a JSON-formatted string
|
| 26 |
|
|
|
|
|
|
|
| 27 |
#audio_out = gr.Audio(label="Generated Audio",
|
| 28 |
# type="numpy", elem_id="audio_out")
|
| 29 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
| 3 |
+
from bark import SAMPLE_RATE, generate_audio, preload_models
|
| 4 |
+
from bark.generation import SUPPORTED_LANGS
|
| 5 |
#from share_btn imposrt community_icon_html, loading_icon_html, share_js
|
| 6 |
+
from flask import Flask, jsonify
|
| 7 |
+
|
| 8 |
DEBUG_MODE = False
|
| 9 |
|
| 10 |
|
|
|
|
| 24 |
|
| 25 |
# Convert the output_text dictionary to a JSON-formatted string
|
| 26 |
|
| 27 |
+
|
| 28 |
+
|
| 29 |
#audio_out = gr.Audio(label="Generated Audio",
|
| 30 |
# type="numpy", elem_id="audio_out")
|
| 31 |
|
requirements.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
gradio
|
| 2 |
transformers
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
gradio
|
| 2 |
transformers
|
| 3 |
+
bark
|
| 4 |
+
#numpy
|
| 5 |
+
#share_btn
|
| 6 |
+
flask
|
| 7 |
+
#bark.generation
|