Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files100 unmodified lines101102103104105106107104 unmodified lines212213214214215216217218219220221222223224100 unmodified lines
def load_hubert(): global hubert_model models, _, _ = checkpoint_utils.load_model_ensemble_and_task(104 unmodified lines
return jsonify({'success': True, 'message': 'File downloaded successfully', 'file_path': local_file_path})
@app.route('/list-weights', methods=['GET'])def list_weights(): directory = 'weights' files = os.listdir(directory) # Extract filenames without their extensions filenames = [os.path.splitext(file)[0] for file in files if os.path.isfile(os.path.join(directory, file))] return jsonify(filenames)
@app.route("/logout")def logout():myinfer_latest.py+8-1