hf-lin commited on
Commit
efb2746
1 Parent(s): 31baa8b
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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:app", "--host", "0.0.0.0", "--port", "7860"]
 
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
- if __name__ == "__main__":
46
-
47
- gradio_app = gr.Interface(
48
- parse_abc_notation,
49
- inputs=["text"],
50
- outputs=[gr.Image(label="svg"), gr.Audio(label="audio")],
51
- title="ABC notation parse",
52
- examples=[default_abc]
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()