Update predict.py
Browse files- predict.py +14 -1
predict.py
CHANGED
@@ -80,4 +80,17 @@ interface = gr.Interface(
|
|
80 |
fn=gradio_predict,
|
81 |
inputs=[
|
82 |
gr.Audio(source="upload", type="filepath", label="Audio File"),
|
83 |
-
gr.Textbox(value="#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
fn=gradio_predict,
|
81 |
inputs=[
|
82 |
gr.Audio(source="upload", type="filepath", label="Audio File"),
|
83 |
+
gr.Textbox(value="#000000", label="Background Color"),
|
84 |
+
gr.Slider(0, 1, value=0.75, label="Foreground Opacity"),
|
85 |
+
gr.ColorPicker(value="#ffffff", label="Bars Color"),
|
86 |
+
gr.Slider(10, 500, value=100, step=1, label="Number of Bars"),
|
87 |
+
gr.Slider(0, 1, value=0.4, step=0.1, label="Bar Width"),
|
88 |
+
gr.Textbox(value="", label="Caption Text")
|
89 |
+
],
|
90 |
+
outputs=gr.Video(label="Waveform Video"),
|
91 |
+
live=False
|
92 |
+
)
|
93 |
+
|
94 |
+
if __name__ == "__main__":
|
95 |
+
print("Starting Gradio interface...")
|
96 |
+
interface.launch(server_name="0.0.0.0", server_port=7860)
|