pachet commited on
Commit
6807c17
·
1 Parent(s): 80cc02e

Update Dockerfile and app.py

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -5
  2. app.py +1 -1
Dockerfile CHANGED
@@ -13,14 +13,17 @@ RUN apt-get update && apt-get install -y \
13
  && rm -rf /var/lib/apt/lists/*
14
  # Install Python packages
15
  RUN pip install --upgrade pip
16
- RUN pip install verovio
17
- RUN python3 -c "import verovio, sys; sys.stderr.write('✅ Verovio version: ' + verovio.toolkit().getVersion() + '\n')"
18
- RUN pip install gradio
19
- RUN pip install music21
 
 
 
20
 
21
  # Copy app and MEI file
22
  WORKDIR /app
23
- COPY app.py .
24
  COPY example.mei .
25
 
26
  CMD ["python3", "app.py"]
 
13
  && rm -rf /var/lib/apt/lists/*
14
  # Install Python packages
15
  RUN pip install --upgrade pip
16
+ #RUN pip install verovio
17
+ #RUN python3 -c "import verovio, sys; sys.stderr.write('✅ Verovio version: ' + verovio.toolkit().getVersion() + '\n')"
18
+ #RUN pip install gradio
19
+ #RUN pip install music21
20
+
21
+ COPY requirements.txt .
22
+ RUN pip install -r requirements.txt
23
 
24
  # Copy app and MEI file
25
  WORKDIR /app
26
+ COPY . .
27
  COPY example.mei .
28
 
29
  CMD ["python3", "app.py"]
app.py CHANGED
@@ -271,7 +271,7 @@ def launch_app():
271
  if hex.on_huggingface:
272
  hex.ui.launch(server_name="0.0.0.0", server_port=7860)
273
  else:
274
- hex.ui.launch()
275
 
276
 
277
  launch_app()
 
271
  if hex.on_huggingface:
272
  hex.ui.launch(server_name="0.0.0.0", server_port=7860)
273
  else:
274
+ hex.ui.launch(server_name="0.0.0.0", server_port=7860)
275
 
276
 
277
  launch_app()