Spaces:
Running on Zero
Running on Zero
Commit ·
1fd7b7d
1
Parent(s): 56034a4
updated app.py to avoid rendering the same components twice.
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🥗
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.28.0
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
app.py
CHANGED
|
@@ -740,6 +740,8 @@ with gr.Blocks() as demo:
|
|
| 740 |
gr.JSON(label="Generated Labels"),
|
| 741 |
]
|
| 742 |
|
|
|
|
|
|
|
| 743 |
harp_app = build_endpoint(
|
| 744 |
model_card=harp_model_card,
|
| 745 |
input_components=harp_input_components,
|
|
@@ -747,11 +749,6 @@ with gr.Blocks() as demo:
|
|
| 747 |
process_fn=harp_vamp
|
| 748 |
)
|
| 749 |
|
| 750 |
-
with gr.Row():
|
| 751 |
-
gr.Markdown("### VST / HARP Plugin Controls")
|
| 752 |
-
for comp in harp_app.values():
|
| 753 |
-
comp.render()
|
| 754 |
-
|
| 755 |
try:
|
| 756 |
demo.queue()
|
| 757 |
demo.launch(share=True)
|
|
|
|
| 740 |
gr.JSON(label="Generated Labels"),
|
| 741 |
]
|
| 742 |
|
| 743 |
+
with gr.Row():
|
| 744 |
+
gr.Markdown("### VST / HARP Plugin Controls")
|
| 745 |
harp_app = build_endpoint(
|
| 746 |
model_card=harp_model_card,
|
| 747 |
input_components=harp_input_components,
|
|
|
|
| 749 |
process_fn=harp_vamp
|
| 750 |
)
|
| 751 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 752 |
try:
|
| 753 |
demo.queue()
|
| 754 |
demo.launch(share=True)
|