Spaces:
Runtime error
Runtime error
update
Browse files- Dockerfile +1 -1
- app.py +9 -12
Dockerfile
CHANGED
@@ -11,4 +11,4 @@ RUN apt install fuse libfuse2
|
|
11 |
COPY . .
|
12 |
RUN chmod +x MuseScore-4.1.1.232071203-x86_64.AppImage
|
13 |
|
14 |
-
CMD ["uvicorn", "app:
|
|
|
11 |
COPY . .
|
12 |
RUN chmod +x MuseScore-4.1.1.232071203-x86_64.AppImage
|
13 |
|
14 |
+
CMD ["uvicorn", "app:gradio_app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
@@ -41,15 +41,12 @@ def parse_abc_notation(text='', conversation_id='debug'):
|
|
41 |
else:
|
42 |
return None, None
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
)
|
54 |
-
|
55 |
-
gradio_app.launch()
|
|
|
41 |
else:
|
42 |
return None, None
|
43 |
|
44 |
+
gradio_app = gr.Interface(
|
45 |
+
parse_abc_notation,
|
46 |
+
inputs=["text"],
|
47 |
+
outputs=[gr.Image(label="svg"), gr.Audio(label="audio")],
|
48 |
+
title="ABC notation parse",
|
49 |
+
examples=[default_abc]
|
50 |
+
)
|
51 |
+
|
52 |
+
gradio_app.launch()
|
|
|
|
|
|