ConvxO2 commited on
Commit
1810c78
·
1 Parent(s): 76debc2

Debug from_hparams signature

Browse files
Files changed (1) hide show
  1. app/main.py +5 -0
app/main.py CHANGED
@@ -258,12 +258,17 @@ async def serve_ui():
258
  async def debug():
259
  import speechbrain
260
  import os
 
 
 
261
  return {
262
  "speechbrain_version": speechbrain.__version__,
263
  "tmp_writable": os.access("/tmp", os.W_OK),
264
  "cache_exists": os.path.exists("/tmp/model_cache"),
 
265
  }
266
 
 
267
  static_dir = Path("static")
268
  if static_dir.exists():
269
  app.mount("/static", StaticFiles(directory="static"), name="static")
 
258
  async def debug():
259
  import speechbrain
260
  import os
261
+ import inspect
262
+ from speechbrain.inference.classifiers import EncoderClassifier
263
+ sig = str(inspect.signature(EncoderClassifier.from_hparams))
264
  return {
265
  "speechbrain_version": speechbrain.__version__,
266
  "tmp_writable": os.access("/tmp", os.W_OK),
267
  "cache_exists": os.path.exists("/tmp/model_cache"),
268
+ "from_hparams_signature": sig,
269
  }
270
 
271
+
272
  static_dir = Path("static")
273
  if static_dir.exists():
274
  app.mount("/static", StaticFiles(directory="static"), name="static")