asigalov61 commited on
Commit
ad3c084
1 Parent(s): d659390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -165,16 +165,15 @@ class JSMsgReceiver(gr.HTML):
165
 
166
  def __init__(self, **kwargs):
167
  super().__init__(elem_id="msg_receiver", visible=False, **kwargs)
168
-
169
  def postprocess(self, y):
170
  if y:
171
  y = f"<p>{json.dumps(y)}</p>"
172
  return super().postprocess(y)
173
-
174
  def get_block_name(self) -> str:
175
  return "html"
176
 
177
-
178
  number2drum_kits = {-1: "None", 0: "Standard", 8: "Room", 16: "Power", 24: "Electric", 25: "TR-808", 32: "Jazz",
179
  40: "Blush", 48: "Orchestra"}
180
  patch2number = {v: k for k, v in MIDI.Number2patch.items()}
 
165
 
166
  def __init__(self, **kwargs):
167
  super().__init__(elem_id="msg_receiver", visible=False, **kwargs)
168
+
169
  def postprocess(self, y):
170
  if y:
171
  y = f"<p>{json.dumps(y)}</p>"
172
  return super().postprocess(y)
173
+
174
  def get_block_name(self) -> str:
175
  return "html"
176
 
 
177
  number2drum_kits = {-1: "None", 0: "Standard", 8: "Room", 16: "Power", 24: "Electric", 25: "TR-808", 32: "Jazz",
178
  40: "Blush", 48: "Orchestra"}
179
  patch2number = {v: k for k, v in MIDI.Number2patch.items()}