Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -49,24 +49,14 @@ def parse_abc_notation(text="", conversation_id='1'):
|
|
| 49 |
else:
|
| 50 |
return None, None
|
| 51 |
|
| 52 |
-
gradio_app = gr.Interface(
|
| 53 |
-
parse_abc_notation,
|
| 54 |
-
inputs=["text"],
|
| 55 |
-
outputs=[gr.Image(label="Processed Image"), gr.Audio(label="Result")],
|
| 56 |
-
title="Hot Dog? Or Not?",
|
| 57 |
-
)
|
| 58 |
|
| 59 |
-
|
| 60 |
-
return "Hello, " + name + "!" * int(intensity)
|
| 61 |
-
|
| 62 |
-
demo = gr.Interface(
|
| 63 |
-
fn=greet,
|
| 64 |
-
inputs=["text", "slider"],
|
| 65 |
-
outputs=["text"],
|
| 66 |
-
)
|
| 67 |
-
|
| 68 |
-
demo.launch()
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
if __name__ == "__main__":
|
| 72 |
gradio_app.launch()
|
|
|
|
| 49 |
else:
|
| 50 |
return None, None
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
+
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
+
gradio_app = gr.Interface(
|
| 56 |
+
parse_abc_notation,
|
| 57 |
+
inputs=["text"],
|
| 58 |
+
outputs=[gr.Image(label="Processed Image"), gr.Audio(label="Result")],
|
| 59 |
+
title="Hot Dog? Or Not?",
|
| 60 |
+
)
|
| 61 |
|
|
|
|
| 62 |
gradio_app.launch()
|